1
0
Fork 0
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:
Yves Senn 2015-10-29 16:22:47 +01:00
commit ec94f00ba3

View file

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