Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build fix for ruby1.8.7-358

  • Loading branch information...
commit fcc8743459422a8c2e6f08e84db53c0298061946 1 parent 74b7829
@arunagw arunagw authored
View
2  actionpack/test/controller/request_forgery_protection_test.rb
@@ -115,7 +115,7 @@ def test_should_render_form_without_token_tag_if_remote
assert_not_blocked do
get :form_for_remote
end
- assert_no_match /authenticity_token/, response.body
+ assert_no_match(/authenticity_token/, response.body)
end
def test_should_render_form_with_token_tag_if_remote_and_authenticity_token_requested
View
14 actionpack/test/template/form_options_helper_test.rb
@@ -1045,17 +1045,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 fcc8743

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