From bddd1bb6268e8ac2142c8d8c738929d2f2e8447a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 29 Jan 2010 20:00:55 -0600 Subject: Deprecate link_to :popup --- actionpack/test/template/url_helper_test.rb | 30 ----------------------------- 1 file changed, 30 deletions(-) (limited to 'actionpack/test') diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index c0e6826ec5..984240d46f 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -183,32 +183,6 @@ class UrlHelperTest < ActionView::TestCase ) end - def test_link_tag_with_popup - assert_dom_equal( - "Hello", - link_to("Hello", "http://www.example.com", :popup => true) - ) - assert_dom_equal( - "Hello", - link_to("Hello", "http://www.example.com", :popup => 'true') - ) - assert_dom_equal( - "Hello", - link_to("Hello", "http://www.example.com", :popup => ['window_name', 'width=300,height=300']) - ) - end - - def test_link_tag_with_popup_and_javascript_confirm - assert_dom_equal( - "Hello", - link_to("Hello", "http://www.example.com", { :popup => true, :confirm => "Fo' sho'?" }) - ) - assert_dom_equal( - "Hello", - link_to("Hello", "http://www.example.com", { :popup => ['window_name', 'width=300,height=300'], :confirm => "Are you serious?" }) - ) - end - def test_link_tag_using_post_javascript assert_dom_equal( "Hello", @@ -245,10 +219,6 @@ class UrlHelperTest < ActionView::TestCase ) end - def test_link_tag_using_post_javascript_and_popup - assert_raise(ActionView::ActionViewError) { link_to("Hello", "http://www.example.com", :popup => true, :method => :post, :confirm => "Are you serious?") } - end - def test_link_tag_using_block_in_erb __in_erb_template = '' -- cgit v1.2.3