aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-01-30 20:26:30 -0600
committerJoshua Peek <josh@joshpeek.com>2010-01-30 20:26:30 -0600
commit48459c82783c53e1ac671259d65c806384f60f2b (patch)
treedcef6645cedd9476098cd4fdec0ac1dba5ebc4f0 /actionpack/test
parent31820b9dd60dc94744028b41f818f1fdab36e271 (diff)
downloadrails-48459c82783c53e1ac671259d65c806384f60f2b.tar.gz
rails-48459c82783c53e1ac671259d65c806384f60f2b.tar.bz2
rails-48459c82783c53e1ac671259d65c806384f60f2b.zip
Add rel=nofollow on non get remote links
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/url_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb
index 6d9384d40b..b498ec8429 100644
--- a/actionpack/test/template/url_helper_test.rb
+++ b/actionpack/test/template/url_helper_test.rb
@@ -192,7 +192,7 @@ class UrlHelperTest < ActionView::TestCase
def test_link_tag_using_post_javascript
assert_dom_equal(
- "<a href='http://www.example.com' data-method=\"post\">Hello</a>",
+ "<a href='http://www.example.com' data-method=\"post\" rel=\"nofollow\">Hello</a>",
link_to("Hello", "http://www.example.com", :method => :post)
)
end
@@ -213,7 +213,7 @@ class UrlHelperTest < ActionView::TestCase
def test_link_tag_using_post_javascript_and_confirm
assert_dom_equal(
- "<a href=\"http://www.example.com\" data-method=\"post\" data-confirm=\"Are you serious?\">Hello</a>",
+ "<a href=\"http://www.example.com\" data-method=\"post\" rel=\"nofollow\" data-confirm=\"Are you serious?\">Hello</a>",
link_to("Hello", "http://www.example.com", :method => :post, :confirm => "Are you serious?")
)
end