diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-24 17:05:44 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-24 17:05:44 +0100 |
commit | 80cefd5b3cd9c8efa435f684a33fe1562696b74a (patch) | |
tree | dd3eab3219fb7c4757c8d67ae5178b43f8ec075b /spec | |
parent | b06a375ee49e80279b1a9529d1ca892548e55fc7 (diff) |
Fix #204, fix #515 - URL truncating is now a style so copypasting is not
affected, replaced onClick handler with onMouseUp/Down to detect text selection not trigger onClick handler then
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/formatter_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/formatter_spec.rb b/spec/lib/formatter_spec.rb index 7b8259fa6..6ec28f5d8 100644 --- a/spec/lib/formatter_spec.rb +++ b/spec/lib/formatter_spec.rb @@ -17,7 +17,7 @@ RSpec.describe Formatter do end it 'contains a link' do - expect(subject).to match('<a rel="nofollow noopener" target="_blank" href="http://google.com">google.com</a>') + expect(subject).to match('<a rel="nofollow noopener" target="_blank" href="http://google.com"><span class="invisible">http://</span><span class="ellipsis">google.com</span><span class="invisible"></span></a>') end end |