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:
parent
920f3ba266
commit
243e6e4b2a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue