Skip to content

Commit

Permalink
Build fix for form_options_helper_test.rb ruby-1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw authored and carlosantoniodasilva committed Mar 24, 2012
1 parent 728a65d commit 00726ea
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions actionpack/test/template/form_options_helper_test.rb
Expand Up @@ -921,17 +921,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
Expand Down

0 comments on commit 00726ea

Please sign in to comment.