diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-26 01:11:24 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-26 01:13:20 +0300 |
commit | fc5478799be56aa23cdbe787ccdedeac0da146b0 (patch) | |
tree | 37b91ed57df3ff4f00a6cbfe6798ac88898263ca /actionpack/test | |
parent | 0920065772dc6e3094df7101e28c38a183725ac9 (diff) | |
download | rails-fc5478799be56aa23cdbe787ccdedeac0da146b0.tar.gz rails-fc5478799be56aa23cdbe787ccdedeac0da146b0.tar.bz2 rails-fc5478799be56aa23cdbe787ccdedeac0da146b0.zip |
do not modify options in image_tag
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/asset_tag_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index 37153ee960..92e053134f 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -445,6 +445,12 @@ class AssetTagHelperTest < ActionView::TestCase ImageLinkToTag.each { |method, tag| assert_dom_equal(tag, eval(method)) } end + def test_image_tag_does_not_modify_options + options = {:size => '16x10'} + image_tag('icon', options) + assert_equal({:size => '16x10'}, options) + end + def test_favicon_link_tag FaviconLinkToTag.each { |method, tag| assert_dom_equal(tag, eval(method)) } end |