mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Reference example.com instead of somesite.com in examples
* somesite.com actually exists... * example.com should be used in examples and is harmless to visit
This commit is contained in:
@ -857,15 +857,15 @@ describe PrettyText do
|
||||
expect(cooked).to include(element)
|
||||
end
|
||||
|
||||
cooked = PrettyText.cook("[`a` #known::tag here](http://somesite.com)")
|
||||
cooked = PrettyText.cook("[`a` #known::tag here](http://example.com)")
|
||||
|
||||
html = <<~HTML
|
||||
<p><a href="http://somesite.com" rel="nofollow noopener"><code>a</code> #known::tag here</a></p>
|
||||
<p><a href="http://example.com" rel="nofollow noopener"><code>a</code> #known::tag here</a></p>
|
||||
HTML
|
||||
|
||||
expect(cooked).to eq(html.strip)
|
||||
|
||||
cooked = PrettyText.cook("<a href='http://somesite.com'>`a` #known::tag here</a>")
|
||||
cooked = PrettyText.cook("<a href='http://example.com'>`a` #known::tag here</a>")
|
||||
|
||||
expect(cooked).to eq(html.strip)
|
||||
|
||||
|
Reference in New Issue
Block a user