aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-18 14:00:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-18 14:00:00 -0700
commit38f6533792985dac7ad790225e72252ac3d8b51c (patch)
treee1c1b510bc83d994b345822aeaa601a37c64c7f3 /actionpack/test/template/form_helper_test.rb
parent1f6b0a554b945a02a08436bbd411ef95640b12ba (diff)
downloadrails-38f6533792985dac7ad790225e72252ac3d8b51c.tar.gz
rails-38f6533792985dac7ad790225e72252ac3d8b51c.tar.bz2
rails-38f6533792985dac7ad790225e72252ac3d8b51c.zip
argument error is done for us
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r--actionpack/test/template/form_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 348aa208c7..2f20bfa719 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -640,6 +640,12 @@ class FormHelperTest < ActionView::TestCase
)
end
+ def test_form_for_requires_block
+ assert_raises(ArgumentError) do
+ form_for(:post, @post, :html => { :id => 'create-post' })
+ end
+ end
+
def test_form_for
assert_deprecated do
form_for(:post, @post, :html => { :id => 'create-post' }) do |f|