spec/policies/application_policy_spec.rb
(...)
interpreted as grouped expression. Open
Open
let (:admin) { FactoryBot.create :user, admin: true }
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
do_something (foo)
# good
do_something(foo)
do_something (2 + 3) * 4
do_something (foo * bar).baz
(...)
interpreted as grouped expression. Open
Open
let (:other_user) { FactoryBot.create :user }
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
do_something (foo)
# good
do_something(foo)
do_something (2 + 3) * 4
do_something (foo * bar).baz
(...)
interpreted as grouped expression. Open
Open
let (:private_user) { FactoryBot.create :user, is_private: true }
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
do_something (foo)
# good
do_something(foo)
do_something (2 + 3) * 4
do_something (foo * bar).baz
(...)
interpreted as grouped expression. Open
Open
let (:current_user) { FactoryBot.create :user }
- Read upRead up
- Exclude checks
Checks for space between the name of a called method and a left parenthesis.
Example:
# bad
do_something (foo)
# good
do_something(foo)
do_something (2 + 3) * 4
do_something (foo * bar).baz