mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #22116 from gsamokovarov/fix-form-for-block-test
Fix a faulty form_for test
This commit is contained in:
commit
ec94f00ba3
1 changed files with 3 additions and 2 deletions
|
@ -1539,9 +1539,10 @@ class FormHelperTest < ActionView::TestCase
|
|||
end
|
||||
|
||||
def test_form_for_requires_block
|
||||
assert_raises(ArgumentError) do
|
||||
form_for(:post, @post, html: { id: 'create-post' })
|
||||
error = assert_raises(ArgumentError) do
|
||||
form_for(@post, html: { id: 'create-post' })
|
||||
end
|
||||
assert_equal "Missing block", error.message
|
||||
end
|
||||
|
||||
def test_form_for_requires_arguments
|
||||
|
|
Loading…
Reference in a new issue