diff options
author | Alastair Brunton <info@simplyexcited.co.uk> | 2008-08-08 15:55:50 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-09-10 00:13:35 -0500 |
commit | b141624abbd1be6aa9836708fe4c20c03af5ab3b (patch) | |
tree | 101054db556e9941b55e2bc9fc111516344b4033 /actionpack/test | |
parent | 184cf27b1244734a33833cf2cb9b8062e9ee8a63 (diff) | |
download | rails-b141624abbd1be6aa9836708fe4c20c03af5ab3b.tar.gz rails-b141624abbd1be6aa9836708fe4c20c03af5ab3b.tar.bz2 rails-b141624abbd1be6aa9836708fe4c20c03af5ab3b.zip |
Added image_submit_tag confirm option [status:committed #784]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 15e84564be..6473d011d5 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -241,6 +241,13 @@ class FormTagHelperTest < ActionView::TestCase submit_tag("Save", :confirm => "Are you sure?") ) end + + def test_image_submit_tag_with_confirmation + assert_dom_equal( + %(<input type="image" src="/images/save.gif" onclick="return confirm('Are you sure?');"/>), + image_submit_tag("save.gif", :confirm => "Are you sure?") + ) + end def test_pass assert_equal 1, 1 |