aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-08-23 11:51:34 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-08-23 11:51:34 -0400
commit783295f7065952e508a061c3d8acead16a9a39b1 (patch)
treedb9e8d0a300394094b9d918e211d2e2469464a00 /activestorage
parentabe9592beadf8f7146bc531b94aab2992eb5eeb4 (diff)
parent9a74c7b99bf0ac901f86bb38372a68e157cf9c73 (diff)
downloadrails-783295f7065952e508a061c3d8acead16a9a39b1.tar.gz
rails-783295f7065952e508a061c3d8acead16a9a39b1.tar.bz2
rails-783295f7065952e508a061c3d8acead16a9a39b1.zip
Merge pull request #30213 from ckundo/ccundiff-alt-text-default
Do not generate default alt text for images
Diffstat (limited to 'activestorage')
-rw-r--r--activestorage/test/template/image_tag_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activestorage/test/template/image_tag_test.rb b/activestorage/test/template/image_tag_test.rb
index 46dd97b3e9..dedc58452e 100644
--- a/activestorage/test/template/image_tag_test.rb
+++ b/activestorage/test/template/image_tag_test.rb
@@ -11,17 +11,17 @@ class ActiveStorage::ImageTagTest < ActionView::TestCase
end
test "blob" do
- assert_dom_equal %(<img alt="Racecar" src="#{polymorphic_url @blob}" />), image_tag(@blob)
+ assert_dom_equal %(<img src="#{polymorphic_url @blob}" />), image_tag(@blob)
end
test "variant" do
variant = @blob.variant(resize: "100x100")
- assert_dom_equal %(<img alt="Racecar" src="#{polymorphic_url variant}" />), image_tag(variant)
+ assert_dom_equal %(<img src="#{polymorphic_url variant}" />), image_tag(variant)
end
test "attachment" do
attachment = ActiveStorage::Attachment.new(blob: @blob)
- assert_dom_equal %(<img alt="Racecar" src="#{polymorphic_url attachment}" />), image_tag(attachment)
+ assert_dom_equal %(<img src="#{polymorphic_url attachment}" />), image_tag(attachment)
end
test "error when attachment's empty" do