Skip to content

Commit

Permalink
Merge branch 'rubocop:master' into jaydorsey/association-style-nested…
Browse files Browse the repository at this point in the history
…-factory
  • Loading branch information
jaydorsey authored Apr 25, 2024
2 parents bf8cab4 + 86406bb commit f30191b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
end

context 'when create and first argument are on same line' do
it 'register an offense' do
it 'registers an offense' do
expect_offense(<<~RUBY)
create(:user,
^^^^^^ Prefer method call without parentheses
Expand Down Expand Up @@ -459,7 +459,7 @@
let(:enforced_style) { :require_parentheses }
let(:explicit_only) { false }

it 'register an offense when using `create` with an explicit receiver' do
it 'registers an offense when using `create` with an explicit receiver' do
expect_offense(<<~RUBY)
FactoryBot.create :user
^^^^^^ Prefer method call with parentheses
Expand All @@ -470,7 +470,7 @@
RUBY
end

it 'register an offense when using `create` with no explicit receiver' do
it 'registers an offense when using `create` with no explicit receiver' do
expect_offense(<<~RUBY)
create :user
^^^^^^ Prefer method call with parentheses
Expand All @@ -486,7 +486,7 @@
let(:enforced_style) { :require_parentheses }
let(:explicit_only) { true }

it 'register an offense when using `create` with an explicit receiver' do
it 'registers an offense when using `create` with an explicit receiver' do
expect_offense(<<~RUBY)
FactoryBot.create :user
^^^^^^ Prefer method call with parentheses
Expand Down

0 comments on commit f30191b

Please sign in to comment.