From e4a2396942d1479b254cee95a31a00a2853770bb Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Fri, 2 Jan 2015 19:59:53 -0800 Subject: switch to minitest and test-unit compatible assert_raise syntax --- actionpack/test/template/template_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb index b7f785fe3a..f73024fc54 100644 --- a/actionpack/test/template/template_test.rb +++ b/actionpack/test/template/template_test.rb @@ -179,10 +179,11 @@ class TestERBTemplate < ActiveSupport::TestCase end def test_error_when_template_isnt_valid_utf8 - assert_raises(ActionView::Template::Error, /\xFC/) do + exception = assert_raise(ActionView::Template::Error) do @template = new_template("hello \xFCmlat", :virtual_path => nil) render end + assert_match(/\xFC/, exception.message) end def with_external_encoding(encoding) -- cgit v1.2.3