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.
1 parent 5464c08 commit e50ad2cCopy full SHA for e50ad2c
test/sandbox/test/rendering_test.rb
@@ -564,7 +564,8 @@ def test_backtrace_returns_correct_file_and_line_number
564
render_inline(ExceptionInTemplateComponent.new)
565
end
566
567
- assert_match %r{app/components/exception_in_template_component\.html\.erb:2}, error.backtrace[0]
+ component_error_index = (Rails::VERSION::STRING < "8.0") ? 0 : 1
568
+ assert_match %r{app/components/exception_in_template_component\.html\.erb:2}, error.backtrace[component_error_index]
569
570
571
def test_render_collection
0 commit comments