aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/erb/form_for_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/erb/form_for_test.rb')
-rw-r--r--actionpack/test/template/erb/form_for_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/template/erb/form_for_test.rb b/actionpack/test/template/erb/form_for_test.rb
new file mode 100644
index 0000000000..482dbb0287
--- /dev/null
+++ b/actionpack/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_equal "<form action=\"/blah/update\" method=\"post\"></form>", output
+ end
+ end
+end \ No newline at end of file