diff options
author | Yehuda Katz <yehudakatz@YK.local> | 2010-03-02 14:04:57 -0800 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-03-02 14:04:57 -0800 |
commit | 6d7d03b77c281014ab01177ed47b7e887866e3f9 (patch) | |
tree | 9b069546b71948fa40875bf187f6fe585ae67d8a /actionpack/test | |
parent | aa749a74f63547a503772f4489fb60b5e4fbea1a (diff) | |
download | rails-6d7d03b77c281014ab01177ed47b7e887866e3f9.tar.gz rails-6d7d03b77c281014ab01177ed47b7e887866e3f9.tar.bz2 rails-6d7d03b77c281014ab01177ed47b7e887866e3f9.zip |
Fix some tests that relied on hardcoded Exception information (ht: evan)
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/render_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb index fdf3db1cdb..338ada8b0e 100644 --- a/actionpack/test/template/render_test.rb +++ b/actionpack/test/template/render_test.rb @@ -108,7 +108,7 @@ module RenderTestCases @view.render(:partial => "test/raise") flunk "Render did not raise Template::Error" rescue ActionView::Template::Error => e - assert_match "undefined local variable or method `doesnt_exist'", e.message + assert_match %r!method.*doesnt_exist!, e.message assert_equal "", e.sub_template_message assert_equal "1", e.line_number assert_equal File.expand_path("#{FIXTURE_LOAD_PATH}/test/_raise.html.erb"), e.file_name @@ -118,7 +118,7 @@ module RenderTestCases @view.render(:file => "test/sub_template_raise") flunk "Render did not raise Template::Error" rescue ActionView::Template::Error => e - assert_match "undefined local variable or method `doesnt_exist'", e.message + assert_match %r!method.*doesnt_exist!, e.message assert_equal "Trace of template inclusion: #{File.expand_path("#{FIXTURE_LOAD_PATH}/test/sub_template_raise.html.erb")}", e.sub_template_message assert_equal "1", e.line_number assert_equal File.expand_path("#{FIXTURE_LOAD_PATH}/test/_raise.html.erb"), e.file_name |