Permalink
Browse files

Merge pull request #5506 from arunagw/build_fix_1.8.7-3-1-stable

Build fix 1.8.7 3 1 stable
  • Loading branch information...
2 parents 594d6b2 + c1c62e8 commit fea82eba343a2b04da73695005cf68569c46130e @josevalim josevalim committed Mar 19, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 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 fea82eb

Please sign in to comment.