diff options
author | Waynn Lue <waynnlue@gmail.com> | 2011-08-11 00:30:45 -0700 |
---|---|---|
committer | Waynn Lue <waynnlue@gmail.com> | 2011-08-11 00:30:45 -0700 |
commit | 895d64531d25a76c1de2d4fec9aba68c0ee8c104 (patch) | |
tree | 97ae9ac48bbd5b50d6287284f328bef72429cbd6 /actionpack/test/template | |
parent | 54b83566ccb55ae4a9bdb163a6224fa946814457 (diff) | |
download | rails-895d64531d25a76c1de2d4fec9aba68c0ee8c104.tar.gz rails-895d64531d25a76c1de2d4fec9aba68c0ee8c104.tar.bz2 rails-895d64531d25a76c1de2d4fec9aba68c0ee8c104.zip |
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 ad31812273..c8e47e4f71 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 |