diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-10-29 16:22:47 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-10-29 16:22:47 +0100 |
commit | ec94f00ba3cf250eb54fc5b7a5e3ed4b90164f34 (patch) | |
tree | 84f0dccdc8f014498f18204670ad81910bdf6414 /actionview | |
parent | 59ec8a592d7125f12e33a8aba22b4d2fc4ae301f (diff) | |
parent | 252660b886c8880fc8c43a1c4bc84f07c9a9aab7 (diff) | |
download | rails-ec94f00ba3cf250eb54fc5b7a5e3ed4b90164f34.tar.gz rails-ec94f00ba3cf250eb54fc5b7a5e3ed4b90164f34.tar.bz2 rails-ec94f00ba3cf250eb54fc5b7a5e3ed4b90164f34.zip |
Merge pull request #22116 from gsamokovarov/fix-form-for-block-test
Fix a faulty form_for test
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/form_helper_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index 41f31f1582..e540bf27d9 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -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 |