We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d438d0 commit 5b3ae65Copy full SHA for 5b3ae65
spec/lib/user_html_spec.rb
@@ -5,12 +5,9 @@
5
expect(ActiveRecord::Base).to respond_to(:user_html)
6
end
7
8
- it 'converts url\'s to html anchors with rel="nofollow" and target="_blank"' do
+ it 'does not auto_link urls' do
9
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
- )
+ expect(described_class.sanitize(content)).to eq content
14
15
16
it 'adds rel="nofollow" and target="_blank" to existing html anchors' do
0 commit comments