aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/erb/form_for_test.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2013-06-20 15:42:49 -0700
committerPiotr Sarnacki <drogus@gmail.com>2013-06-20 15:42:49 -0700
commita29f746398e7b0647885343e7f26d977dd251999 (patch)
tree1e2cd2ee1f8f31812c0acf71350ffe423ca8c5a9 /actionview/test/template/erb/form_for_test.rb
parent7c69a829a311a31109939cff19b700b36b97d5c4 (diff)
parentd6b1caa8f2011487c08b414605883f1f220d0aaa (diff)
downloadrails-a29f746398e7b0647885343e7f26d977dd251999.tar.gz
rails-a29f746398e7b0647885343e7f26d977dd251999.tar.bz2
rails-a29f746398e7b0647885343e7f26d977dd251999.zip
Merge pull request #11032 from strzalek/extract-actionview
Extract ActionView to separate directory
Diffstat (limited to 'actionview/test/template/erb/form_for_test.rb')
-rw-r--r--actionview/test/template/erb/form_for_test.rb11
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