diff --git a/spec/rubocop/cop/rails/save_bang_spec.rb b/spec/rubocop/cop/rails/save_bang_spec.rb index ce3a4a25eb..a74704889d 100644 --- a/spec/rubocop/cop/rails/save_bang_spec.rb +++ b/spec/rubocop/cop/rails/save_bang_spec.rb @@ -172,7 +172,7 @@ it "when using #{method} wrapped within parenthesis with if" do if update - expect_no_offenses(<<~RUBY, method: method) + expect_no_offenses(<<~RUBY) if (object.#{method}); something; end RUBY else @@ -288,7 +288,7 @@ end it "when using #{method} with a bunch of hashes & arrays" do - expect_no_offenses(<<~RUBY, method: method) + expect_no_offenses(<<~RUBY) return [{ success: object.#{method} }, true] RUBY end