X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e731dd71a77ad4ad1e9db22535e89444bb98e5d9..4abd9cfcf19701bf43322374c5df6dd586449e54:/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")