aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2014-02-14 10:24:49 -0500
committerPrem Sichanugrist <s@sikac.hu>2014-02-18 12:08:36 -0500
commit243e6e4b2a53253d5ca734415564c419c5632f12 (patch)
tree21a819fc101c9060d2e8eccd7e3908a07cf15b47 /actionview
parent920f3ba2668e0622335f16f2f1318d9e6b5e6b28 (diff)
downloadrails-243e6e4b2a53253d5ca734415564c419c5632f12.tar.gz
rails-243e6e4b2a53253d5ca734415564c419c5632f12.tar.bz2
rails-243e6e4b2a53253d5ca734415564c419c5632f12.zip
Fix a fragile test on `action_view/render`
This test were assuming that the list of render options will always be the same. Fixing that so this doesn't break when we add/remove render option in the future.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/render_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb
index db5d99755c..ca508abfb8 100644
--- a/actionview/test/template/render_test.rb
+++ b/actionview/test/template/render_test.rb
@@ -22,7 +22,7 @@ module RenderTestCases
def test_render_without_options
e = assert_raises(ArgumentError) { @view.render() }
- assert_match "You invoked render but did not give any of :partial, :template, :inline, :file or :text option.", e.message
+ assert_match(/You invoked render but did not give any of (.+) option./, e.message)
end
def test_render_file