diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-25 07:39:31 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-25 07:39:31 -0700 |
commit | 67274ca162cf198bc8eabd619c81e3fc6156a229 (patch) | |
tree | 3eee900757d01073bc320b5ed3023283a5c74607 /actionpack/test/template | |
parent | d15069316f331c46165248c2df869145fef60008 (diff) | |
parent | 895d64531d25a76c1de2d4fec9aba68c0ee8c104 (diff) | |
download | rails-67274ca162cf198bc8eabd619c81e3fc6156a229.tar.gz rails-67274ca162cf198bc8eabd619c81e3fc6156a229.tar.bz2 rails-67274ca162cf198bc8eabd619c81e3fc6156a229.zip |
Merge pull request #2491 from waynn/fix_symbol
fix destructive stringify_keys for label_tag
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index eb569c7308..091f4e65b7 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -530,6 +530,12 @@ class FormTagHelperTest < ActionView::TestCase assert_equal options, { :option => "random_option" } end + def test_image_label_tag_options_symbolize_keys_side_effects + options = { :option => "random_option" } + actual = label_tag "submit source", "title", options + assert_equal options, { :option => "random_option" } + end + def protect_against_forgery? false end |