X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1f3372f52c0aab437926f2904efb00bbb0d63a96..df232ec96f0568c4a8659f73eba13642aed3bd3e:/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")