Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit fea82eba343a2b04da73695005cf68569c46130e 2 parents 594d6b2 + c1c62e8
@josevalim josevalim authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.