Commit 5df1196
authored
Updated "verbose linting" test to allow for backtrace changes in Ruby 3.4 (#1731)
- file: spec/acceptance/lint_spec.rb:188
Ruby 3.4 backtrace locations now include the object name
as well as the method name.
So "...`save!`" in 3.3, becomes "...'InvalidThing#save!'" in 3.4
The solution was to update the test regex to allow for either option:
%r{#{__FILE__}:\d*:in ('InvalidThing#save!'|`save!')}1 parent a2df3a3 commit 5df1196
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments