File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ nav_order: 6
1010
1111## main
1212
13- * Fix segfault when Ruby coverage is enabled but template annotations are disabled .
13+ * Fix segfaults when Ruby coverage is enabled.
1414
15- * George Holborn*
15+ * George Holborn* , * Joel Hawksley *
1616
1717* Add ` protocol ` parameter to ` with_request_url ` test helper to enable testing with HTTPS protocol.
1818
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def compiled_source
6565 result = super
6666 # Strip the annotation line to maintain correct line numbers when coverage
6767 # is running (avoids segfault from negative lineno)
68- result = result . sub ( / \A [^ \n ]* \n / , "" ) if @strip_annotation_line
68+ result = result . partition ( ";" ) . last if @strip_annotation_line
6969 result
7070 end
7171 end
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ class MailerTest < ActionMailer::TestCase
66 def test_rendering_component_in_an_action_mailer
77 result = TestMailer . test_email . deliver_now . body . to_s
88 assert_includes result , "<div>Hello world!</div>"
9- assert_includes result , "test_email.html.erb"
109 end
1110
1211 def test_rendering_component_in_an_action_mailer_with_asset_component
You can’t perform that action at this time.
0 commit comments