X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..5708c25e04a3d31796771fbcb44485bf601cec8b:/test/lib/rich_text_test.rb
diff --git a/test/lib/rich_text_test.rb b/test/lib/rich_text_test.rb
index 74d396b68..e1603fb09 100644
--- a/test/lib/rich_text_test.rb
+++ b/test/lib/rich_text_test.rb
@@ -8,14 +8,14 @@ class RichTextTest < ActiveSupport::TestCase
assert_html r do
assert_select "a", 1
assert_select "a[href='http://example.com/']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("html", "foo bar baz")
assert_html r do
assert_select "a", 1
assert_select "a[href='http://example.com/']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("html", "foo example@example.com bar")
@@ -27,7 +27,7 @@ class RichTextTest < ActiveSupport::TestCase
assert_html r do
assert_select "a", 1
assert_select "a[href='mailto:example@example.com']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("html", "foo
bar
baz")
@@ -64,28 +64,28 @@ class RichTextTest < ActiveSupport::TestCase
assert_html r do
assert_select "a", 1
assert_select "a[href='http://example.com/']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("markdown", "foo [bar](http://example.com/) baz")
assert_html r do
assert_select "a", 1
assert_select "a[href='http://example.com/']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("markdown", "foo example@example.com bar")
assert_html r do
assert_select "a", 1
assert_select "a[href='mailto:example@example.com']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("markdown", "foo [bar](mailto:example@example.com) bar")
assert_html r do
assert_select "a", 1
assert_select "a[href='mailto:example@example.com']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("markdown", "foo ![bar](http://example.com/example.png) bar")
@@ -162,7 +162,7 @@ class RichTextTest < ActiveSupport::TestCase
assert_html r do
assert_select "a", 1
assert_select "a[href='http://example.com/']", 1
- assert_select "a[rel='nofollow']", 1
+ assert_select "a[rel='nofollow noopener noreferer']", 1
end
r = RichText.new("text", "foo example@example.com bar")