diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-11 04:21:53 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-11 04:21:53 -0800 |
commit | 759679289e6f22a5e4cfd9015e5102194fb92b29 (patch) | |
tree | 9b0b7e173d719d6abb574a675f5c2ac1365a1f98 /actionpack/test | |
parent | cdd293cb963b895ff580eb20d10f5d56ecb3d447 (diff) | |
parent | dd9f8bc84740654057ddfc26428a4411f151c957 (diff) | |
download | rails-759679289e6f22a5e4cfd9015e5102194fb92b29.tar.gz rails-759679289e6f22a5e4cfd9015e5102194fb92b29.tar.bz2 rails-759679289e6f22a5e4cfd9015e5102194fb92b29.zip |
Merge pull request #9221 from thenickcox/image_alt_attribute
Improve img alt attribute for screen readers
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/asset_tag_helper_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index 82c9d383ac..11614a45dc 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -443,7 +443,8 @@ class AssetTagHelperTest < ActionView::TestCase [nil, '/', '/foo/bar/', 'foo/bar/'].each do |prefix| assert_equal 'Rails', image_alt("#{prefix}rails.png") assert_equal 'Rails', image_alt("#{prefix}rails-9c0a079bdd7701d7e729bd956823d153.png") - assert_equal 'Avatar-0000', image_alt("#{prefix}avatar-0000.png") + assert_equal 'Long file name with hyphens', image_alt("#{prefix}long-file-name-with-hyphens.png") + assert_equal 'Long file name with underscores', image_alt("#{prefix}long_file_name_with_underscores.png") end end |