diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-10 14:46:04 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-10 14:50:56 +0300 |
commit | 535be93a77ec677dbb561f8c1545a60d0d908832 (patch) | |
tree | 10ccd88cfb207c5ff2e481d3d19c26a6ad0dd632 /spec/lib | |
parent | c97a81d274ff0e7b792ed409385318c4ec25d92e (diff) |
Do not process upload links if no project context
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/banzai/filter/upload_link_filter_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/banzai/filter/upload_link_filter_spec.rb b/spec/lib/banzai/filter/upload_link_filter_spec.rb index 7a7103079ea..b83be54746c 100644 --- a/spec/lib/banzai/filter/upload_link_filter_spec.rb +++ b/spec/lib/banzai/filter/upload_link_filter_spec.rb @@ -79,13 +79,13 @@ describe Banzai::Filter::UploadLinkFilter, lib: true do let(:upload_link) { link('/uploads/e90decf88d8f96fe9e1389afc2e4a91f/test.jpg') } it 'does not raise error' do - expect { raw_filter(upload_link, project: nil) }.to_not raise_error + expect { raw_filter(upload_link, project: nil) }.not_to raise_error end - it 'provides an empty link' do + it 'does not rewrite link' do doc = raw_filter(upload_link, project: nil) - expect(doc.at_css('a')['href']).to eq '#' + expect(doc.to_html).to eq upload_link end end end |