Skip to content

Commit

Permalink
Merge pull request #47457 from zzak/ruby-3.3/feature/18285 (#50530)
Browse files Browse the repository at this point in the history
Fix ruby:master re: ruby/feature/18285

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
  • Loading branch information
skipkayhil and byroot committed Jan 2, 2024
1 parent 6b6311f commit d16199e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actionview/test/template/render_test.rb
Expand Up @@ -310,7 +310,7 @@ def test_render_sub_template_with_errors

def test_undefined_method_error_references_named_class
e = assert_raises(ActionView::Template::Error) { @view.render(inline: "<%= undefined %>") }
assert_match(/`undefined' for #<ActionView::Base:0x[0-9a-f]+>/, e.message)
assert_match(/undefined local variable or method `undefined'/, e.message)
end

def test_render_renderable_object
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/core_ext/time_with_zone_test.rb
Expand Up @@ -1069,7 +1069,7 @@ def test_no_method_error_has_proper_context
e = assert_raises(NoMethodError) {
@twz.this_method_does_not_exist
}
assert_match "undefined method `this_method_does_not_exist' for Fri, 31 Dec 1999 19:00:00.000000000 EST -05:00:Time", e.message
assert_match(/undefined method `this_method_does_not_exist' for.*Time/, e.message)
assert_no_match "rescue", e.backtrace.first
end
end
Expand Down

0 comments on commit d16199e

Please sign in to comment.