diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-29 20:00:55 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-29 20:00:55 -0600 |
commit | bddd1bb6268e8ac2142c8d8c738929d2f2e8447a (patch) | |
tree | ad1881f45776cda651af326249ac4a440c9f6f33 /actionpack/test/template | |
parent | 7f181e475080924164b3fa0071ee4898bd66cbb8 (diff) | |
download | rails-bddd1bb6268e8ac2142c8d8c738929d2f2e8447a.tar.gz rails-bddd1bb6268e8ac2142c8d8c738929d2f2e8447a.tar.bz2 rails-bddd1bb6268e8ac2142c8d8c738929d2f2e8447a.zip |
Deprecate link_to :popup
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/url_helper_test.rb | 30 |
1 files changed, 0 insertions, 30 deletions
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( - "<a href=\"http://www.example.com\" data-popup=\"true\">Hello</a>", - link_to("Hello", "http://www.example.com", :popup => true) - ) - assert_dom_equal( - "<a href=\"http://www.example.com\" data-popup=\"true\">Hello</a>", - link_to("Hello", "http://www.example.com", :popup => 'true') - ) - assert_dom_equal( - "<a href=\"http://www.example.com\" data-popup=\"{title: 'window_name', options: 'width=300,height=300'}\">Hello</a>", - 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( - "<a href=\"http://www.example.com\" data-confirm=\"Fo\' sho\'?\" data-popup=\"true\">Hello</a>", - link_to("Hello", "http://www.example.com", { :popup => true, :confirm => "Fo' sho'?" }) - ) - assert_dom_equal( - "<a href=\"http://www.example.com\" data-confirm=\"Are you serious?\" data-popup=\"{title: 'window_name', options: 'width=300,height=300'}\">Hello</a>", - 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( "<a href='http://www.example.com' data-url='http://www.example.com' data-method=\"post\">Hello</a>", @@ -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 = '' |