Skip to content

Commit 5b3ae65

Browse files
committed
Fixed failing auto_link test
1 parent 0d438d0 commit 5b3ae65

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/lib/user_html_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
expect(ActiveRecord::Base).to respond_to(:user_html)
66
end
77

8-
it 'converts url\'s to html anchors with rel="nofollow" and target="_blank"' do
8+
it 'does not auto_link urls' do
99
content = 'Here is a cool link: http://www.example.com.'
10-
expect(described_class.sanitize(content)).to(
11-
eq 'Here is a cool link: <a href="http://www.example.com" ' +
12-
'rel="nofollow" target="_blank">http://www.example.com</a>.'
13-
)
10+
expect(described_class.sanitize(content)).to eq content
1411
end
1512

1613
it 'adds rel="nofollow" and target="_blank" to existing html anchors' do

0 commit comments

Comments
 (0)