Skip to content
Browse files

Build fix for form_options_helper_test.rb ruby-1.8.7

  • Loading branch information...
1 parent 594d6b2 commit c1c62e8b1ab3f97a075d26dba77524f9b9319faa @arunagw arunagw committed Mar 19, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 actionpack/test/template/form_options_helper_test.rb
View
14 actionpack/test/template/form_options_helper_test.rb
@@ -941,17 +941,15 @@ def test_option_html_attributes_with_single_element_hash
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

0 comments on commit c1c62e8

Please sign in to comment.
Something went wrong with that request. Please try again.