Skip to content
This repository
Browse code

Duplicate tests removed.

  • Loading branch information...
commit f36fd0e09c94353f886776906d408b0a6fb5f815 1 parent 8475cdd
Arun Agrawal authored June 09, 2012
16  actionpack/test/template/url_helper_test.rb
@@ -103,22 +103,6 @@ def test_button_to_with_remote_and_form_options
103 103
     assert_dom_equal "<form method=\"post\" action=\"http://www.example.com\" class=\"custom-class\" data-remote=\"true\" data-type=\"json\"><div><input type=\"submit\" value=\"Hello\" /></div></form>", button_to("Hello", "http://www.example.com", :remote => true, :form => { :class => "custom-class", "data-type" => "json" } )
104 104
   end
105 105
 
106  
-  def test_button_to_with_remote_and_javascript_confirm
107  
-    assert_deprecated ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead" do
108  
-      assert_dom_equal(
109  
-        "<form method=\"post\" action=\"http://www.example.com\" class=\"button_to\" data-remote=\"true\"><div><input data-confirm=\"Are you sure?\" type=\"submit\" value=\"Hello\" /></div></form>",
110  
-        button_to("Hello", "http://www.example.com", :remote => true, :confirm => "Are you sure?")
111  
-      )
112  
-    end
113  
-  end
114  
-
115  
-  def test_button_to_with_remote_and_javascript_confirm_without_deprecation_warning
116  
-    assert_dom_equal(
117  
-      "<form method=\"post\" action=\"http://www.example.com\" class=\"button_to\" data-remote=\"true\"><div><input data-confirm=\"Are you sure?\" type=\"submit\" value=\"Hello\" /></div></form>",
118  
-      button_to("Hello", "http://www.example.com", :remote => true, :data => { :confirm => "Are you sure?" })
119  
-    )
120  
-  end
121  
-
122 106
   def test_button_to_with_remote_and_javascript_disable_with
123 107
     assert_deprecated ":disable_with option is deprecated and will be removed from Rails 4.0. Use 'data-disable-with' instead" do
124 108
       assert_dom_equal(

0 notes on commit f36fd0e

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