Skip to content

Commit ada5c28

Browse files
committed
Remove redundant expect_no_offenses keyword arguments
This commit removes the following redundant `expect_no_offenses` keyword arguments: ```console $ bundle exec rubocop (snip) Offenses: spec/rubocop/cop/rails/save_bang_spec.rb:175:35: C: [Correctable] InternalAffairs/RedundantExpectOffenseArguments: Remove the redundant arguments. expect_no_offenses(<<~RUBY, method: method) ^^^^^^^^^^^^^^^^ spec/rubocop/cop/rails/save_bang_spec.rb:291:33: C: [Correctable] InternalAffairs/RedundantExpectOffenseArguments: Remove the redundant arguments. expect_no_offenses(<<~RUBY, method: method) ^^^^^^^^^^^^^^^^ 292 files inspected, 2 offenses detected, 2 offenses autocorrectable ```
1 parent 8293b58 commit ada5c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rubocop/cop/rails/save_bang_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172

173173
it "when using #{method} wrapped within parenthesis with if" do
174174
if update
175-
expect_no_offenses(<<~RUBY, method: method)
175+
expect_no_offenses(<<~RUBY)
176176
if (object.#{method}); something; end
177177
RUBY
178178
else
@@ -288,7 +288,7 @@
288288
end
289289

290290
it "when using #{method} with a bunch of hashes & arrays" do
291-
expect_no_offenses(<<~RUBY, method: method)
291+
expect_no_offenses(<<~RUBY)
292292
return [{ success: object.#{method} }, true]
293293
RUBY
294294
end

0 commit comments

Comments
 (0)