X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/11806a676fb88f51ece004b7c05bde38f1e77706..544daa09eb9e396791ee9f3a5f03867bd84e502e:/test/lib/rich_text_test.rb diff --git a/test/lib/rich_text_test.rb b/test/lib/rich_text_test.rb index e1603fb09..80cf0ae37 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 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 noopener noreferer']", 1 + assert_select "a[rel='nofollow noopener noreferrer']", 1 end r = RichText.new("text", "foo example@example.com bar")