diff options
Diffstat (limited to 'actionview/test/template/erb/form_for_test.rb')
-rw-r--r-- | actionview/test/template/erb/form_for_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionview/test/template/erb/form_for_test.rb b/actionview/test/template/erb/form_for_test.rb new file mode 100644 index 0000000000..e722b40a9a --- /dev/null +++ b/actionview/test/template/erb/form_for_test.rb @@ -0,0 +1,11 @@ +require "abstract_unit" +require "template/erb/helper" + +module ERBTest + class TagHelperTest < BlockTestCase + test "form_for works" do + output = render_content "form_for(:staticpage, :url => {:controller => 'blah', :action => 'update'})", "" + assert_match %r{<form.*action="/blah/update".*method="post">.*</form>}, output + end + end +end |