diff options
author | Stephen St. Martin <kuprishuz@gmail.com> | 2010-01-31 14:03:37 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-31 13:46:33 -0600 |
commit | a9e89e82b67f721fe68ca58a2d371b666cdb7441 (patch) | |
tree | cf343277691b2b4e239b186a1935ecc18080cea8 /actionpack/test | |
parent | a3349f845ffa2415e12ac9e26b4f7300d7edd3ef (diff) | |
download | rails-a9e89e82b67f721fe68ca58a2d371b666cdb7441.tar.gz rails-a9e89e82b67f721fe68ca58a2d371b666cdb7441.tar.bz2 rails-a9e89e82b67f721fe68ca58a2d371b666cdb7441.zip |
add :remote option to form_tag
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 6 |
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 01bde8ea04..553ec44fad 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -53,6 +53,12 @@ class FormTagHelperTest < ActionView::TestCase assert_dom_equal expected, actual end + def test_form_tag_with_remote + actual = form_tag({}, :remote => true) + expected = %(<form action="http://www.example.com" method="post" data-remote="true">) + assert_dom_equal expected, actual + end + def test_form_tag_with_block_in_erb __in_erb_template = '' form_tag("http://example.com") { concat "Hello world!" } |