Skip to content

Commit

Permalink
Add expect_correction for FactoryBot/ConsistentParenthesesStyle whe…
Browse files Browse the repository at this point in the history
…n call with an explicit receiver
  • Loading branch information
ydah committed Nov 16, 2023
1 parent 3ed6552 commit fca1ab6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@
FactoryBot.create(:user)
^^^^^^ Prefer method call without parentheses
RUBY

expect_correction(<<~RUBY)
FactoryBot.create :user
RUBY
end

it 'ignores factory_bot DSL methods without a first positional argument' do
Expand Down

0 comments on commit fca1ab6

Please sign in to comment.