1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Prem Sichanugrist 2014-02-14 10:24:49 -05:00
parent 920f3ba266
commit 243e6e4b2a

View file

@ -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