We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 122cde0 + 1a2c974 commit 1b7292eCopy full SHA for 1b7292e
spec/rubocop/cop/rails/save_bang_spec.rb
@@ -47,12 +47,12 @@
47
RUBY
48
else
49
expect_offense(<<~RUBY, method: method)
50
- object.#{method}(variable)
+ object.#{method}(*variable)
51
^{method} Use `#{method}!` instead of `#{method}` if the return value is not checked.
52
53
54
expect_correction(<<~RUBY)
55
- object.#{method}!(variable)
+ object.#{method}!(*variable)
56
57
end
58
@@ -64,12 +64,12 @@
64
65
66
67
+ object.#{method}(**variable)
68
69
70
71
72
+ object.#{method}!(**variable)
73
74
75
0 commit comments