aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_tag_helper_test.rb
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2013-01-08 07:39:06 -0800
committerSteve Klabnik <steve@steveklabnik.com>2013-01-08 07:39:06 -0800
commitac86cbec82acee18a5066e00b98d1c20fc677a15 (patch)
tree25110d7bb27562bfd4b2994a01950faed764c9a7 /actionpack/test/template/form_tag_helper_test.rb
parentcc1c3c5be061e7572018f734e5239750ab449e3f (diff)
parent0f8f75c81a805b9e6721ee1a05b1f92263e62ff9 (diff)
downloadrails-ac86cbec82acee18a5066e00b98d1c20fc677a15.tar.gz
rails-ac86cbec82acee18a5066e00b98d1c20fc677a15.tar.bz2
rails-ac86cbec82acee18a5066e00b98d1c20fc677a15.zip
Merge pull request #8810 from NARKOZ/image-submit-tag
set 'alt' attribute for image_submit_tag
Diffstat (limited to 'actionpack/test/template/form_tag_helper_test.rb')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index 0a94fa079b..6c6a142397 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -488,7 +488,7 @@ class FormTagHelperTest < ActionView::TestCase
def test_image_submit_tag_with_confirmation
assert_dom_equal(
- %(<input type="image" src="/images/save.gif" data-confirm="Are you sure?" />),
+ %(<input alt="Save" type="image" src="/images/save.gif" data-confirm="Are you sure?" />),
image_submit_tag("save.gif", :data => { :confirm => "Are you sure?" })
)
end
@@ -496,7 +496,7 @@ class FormTagHelperTest < ActionView::TestCase
def test_image_submit_tag_with_deprecated_confirmation
assert_deprecated ":confirm option is deprecated and will be removed from Rails 4.1. Use 'data: { confirm: \'Text\' }' instead" do
assert_dom_equal(
- %(<input type="image" src="/images/save.gif" data-confirm="Are you sure?" />),
+ %(<input alt="Save" type="image" src="/images/save.gif" data-confirm="Are you sure?" />),
image_submit_tag("save.gif", :confirm => "Are you sure?")
)
end