Commit 2f6d6b7
committed
Fix
Follow ruby/ruby#2437.
This PR fixes the following `FrozenError` for save_bang_spec.rb
```Failures:
% ruby -v
ruby 2.7.0dev (2019-10-09T16:08:42Z master 42edb05626) [x86_64-darwin17]
% bundle exec rspec ./spec/rubocop/cop/rails/save_bang_spec.rb
(snip)
1) RuboCop::Cop::Rails::SaveBang update behaves like
checks_common_offense when using update without arguments
Failure/Error: inspect_source(method.to_s)
FrozenError:
can't modify frozen String: "update"
Shared Example Group: "checks_common_offense" called from
./spec/rubocop/cop/rails/save_bang_spec.rb:541
# ./spec/rubocop/cop/rails/save_bang_spec.rb:58:in `block (3 levels)
in <top (required)>'
```FrozenError for save_bang_spec.rb1 parent 80fcf14 commit 2f6d6b7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments