aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_tag_helper_test.rb
diff options
context:
space:
mode:
authorNicolas Sanguinetti <contacto@nicolassanguinetti.info>2010-04-14 21:44:28 -0300
committerwycats <wycats@gmail.com>2010-04-22 15:29:59 -0700
commitd5d717161d853d8d7240da59b41a879bdac6e982 (patch)
tree109b43705e564e7fa20db763955f606dafddc4cf /actionpack/test/template/form_tag_helper_test.rb
parenta8330c2006e90a6da8f621fdaf1156fa63b4049a (diff)
downloadrails-d5d717161d853d8d7240da59b41a879bdac6e982.tar.gz
rails-d5d717161d853d8d7240da59b41a879bdac6e982.tar.bz2
rails-d5d717161d853d8d7240da59b41a879bdac6e982.zip
Allow :remote => false to be passed to link_to
And add tests for `button_to` and `form_tag` which currently behave as expected, so we avoid a regression. Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/template/form_tag_helper_test.rb')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index ef612b879b..b4f3f82b29 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -62,6 +62,12 @@ class FormTagHelperTest < ActionView::TestCase
assert_dom_equal expected, actual
end
+ def test_form_tag_with_remote_false
+ actual = form_tag({}, :remote => false)
+ expected = %(<form action="http://www.example.com" method="post">)
+ assert_dom_equal expected, actual
+ end
+
def test_form_tag_with_block_in_erb
output_buffer = form_tag("http://example.com") { concat "Hello world!" }