Skip to content
This repository
Browse code

Build fix for ruby1.8.7-358

  • Loading branch information...
commit fcc8743459422a8c2e6f08e84db53c0298061946 1 parent 74b7829
Arun Agrawal authored March 19, 2012
2  actionpack/test/controller/request_forgery_protection_test.rb
@@ -115,7 +115,7 @@ def test_should_render_form_without_token_tag_if_remote
115 115
     assert_not_blocked do
116 116
       get :form_for_remote
117 117
     end
118  
-    assert_no_match /authenticity_token/, response.body
  118
+    assert_no_match(/authenticity_token/, response.body)
119 119
   end
120 120
 
121 121
   def test_should_render_form_with_token_tag_if_remote_and_authenticity_token_requested
14  actionpack/test/template/form_options_helper_test.rb
@@ -1045,17 +1045,15 @@ def test_option_html_attributes_with_single_element_hash
1045 1045
   end
1046 1046
 
1047 1047
   def test_option_html_attributes_with_multiple_element_hash
1048  
-    assert_dom_equal(
1049  
-      " class=\"fancy\" onclick=\"alert('Hello World');\"",
1050  
-      option_html_attributes([ 'foo', 'bar', { :class => 'fancy', 'onclick' => "alert('Hello World');" } ])
1051  
-    )
  1048
+    output = option_html_attributes([ 'foo', 'bar', { :class => 'fancy', 'onclick' => "alert('Hello World');" } ])
  1049
+    assert output.include?(" class=\"fancy\"")
  1050
+    assert output.include?(" onclick=\"alert('Hello World');\"")
1052 1051
   end
1053 1052
 
1054 1053
   def test_option_html_attributes_with_multiple_hashes
1055  
-    assert_dom_equal(
1056  
-      " class=\"fancy\" onclick=\"alert('Hello World');\"",
1057  
-      option_html_attributes([ 'foo', 'bar', { :class => 'fancy' }, { 'onclick' => "alert('Hello World');" } ])
1058  
-    )
  1054
+    output = option_html_attributes([ 'foo', 'bar', { :class => 'fancy' }, { 'onclick' => "alert('Hello World');" } ])
  1055
+    assert output.include?(" class=\"fancy\"")
  1056
+    assert output.include?(" onclick=\"alert('Hello World');\"")
1059 1057
   end
1060 1058
 
1061 1059
   def test_option_html_attributes_with_special_characters

0 notes on commit fcc8743

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