diff options
author | Arun Agrawal <arunagw@gmail.com> | 2012-03-19 11:55:50 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-03-19 11:58:55 +0530 |
commit | fcc8743459422a8c2e6f08e84db53c0298061946 (patch) | |
tree | dd470513b32aa039cb0967a82cf667a7d4ba2183 /actionpack/test/template | |
parent | 74b782999f7f2c8913e79e2c65366429b9a3e65e (diff) | |
download | rails-fcc8743459422a8c2e6f08e84db53c0298061946.tar.gz rails-fcc8743459422a8c2e6f08e84db53c0298061946.tar.bz2 rails-fcc8743459422a8c2e6f08e84db53c0298061946.zip |
Build fix for ruby1.8.7-358
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_options_helper_test.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index 5b19bcf0f9..09b1bd3884 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -1045,17 +1045,15 @@ class FormOptionsHelperTest < ActionView::TestCase end def test_option_html_attributes_with_multiple_element_hash - assert_dom_equal( - " class=\"fancy\" onclick=\"alert('Hello World');\"", - option_html_attributes([ 'foo', 'bar', { :class => 'fancy', 'onclick' => "alert('Hello World');" } ]) - ) + output = option_html_attributes([ 'foo', 'bar', { :class => 'fancy', 'onclick' => "alert('Hello World');" } ]) + assert output.include?(" class=\"fancy\"") + assert output.include?(" onclick=\"alert('Hello World');\"") end def test_option_html_attributes_with_multiple_hashes - assert_dom_equal( - " class=\"fancy\" onclick=\"alert('Hello World');\"", - option_html_attributes([ 'foo', 'bar', { :class => 'fancy' }, { 'onclick' => "alert('Hello World');" } ]) - ) + output = option_html_attributes([ 'foo', 'bar', { :class => 'fancy' }, { 'onclick' => "alert('Hello World');" } ]) + assert output.include?(" class=\"fancy\"") + assert output.include?(" onclick=\"alert('Hello World');\"") end def test_option_html_attributes_with_special_characters |