Permalink
Browse files

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.
  • Loading branch information...
sikachu committed Feb 14, 2014
1 parent 920f3ba commit 243e6e4b2a53253d5ca734415564c419c5632f12
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/test/template/render_test.rb
@@ -22,7 +22,7 @@ def setup_view(paths)
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

0 comments on commit 243e6e4

Please sign in to comment.