Skip to content

Commit 7f7d497

Browse files
justin808claude
andcommitted
Fix RuboCop line length violation in PrerenderError test
Extract long regex pattern to variable to satisfy 120 character limit. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e9487ba commit 7f7d497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/react_on_rails/prender_error_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ module ReactOnRails
6666
message = expected_error.message
6767
expect(message).to include(err.inspect)
6868
# Ruby version compatibility: match any backtrace reference to the test file
69-
expect(message).to match(/prender_error_spec\.rb:\d+:in ['`]block \(\d+ levels\) in <module:ReactOnRails>['`]/)
69+
backtrace_pattern = /prender_error_spec\.rb:\d+:in ['`]block \(\d+ levels\) in <module:ReactOnRails>['`]/
70+
expect(message).to match(backtrace_pattern)
7071
expect(message).to include("The rest of the backtrace is hidden")
7172
end
7273
end

0 commit comments

Comments
 (0)