summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-12 18:59:49 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-14 12:09:31 -0200
commit765a2c73271cf311311c391e7e64f83e141c79ae (patch)
tree9a9ea4b50427fb7deec318b64f45aec1b0bd33b8 /spec
parent89e8b82b638e440bc487c4135cdfa4402fdffde5 (diff)
downloadgitlab-ce-765a2c73271cf311311c391e7e64f83e141c79ae.tar.gz
Refactoring Banzai::Filter::GollumTagsFilter
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/banzai/filter/gollum_tags_filter_spec.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/lib/banzai/filter/gollum_tags_filter_spec.rb b/spec/lib/banzai/filter/gollum_tags_filter_spec.rb
index 530b37526b3..38baa819957 100644
--- a/spec/lib/banzai/filter/gollum_tags_filter_spec.rb
+++ b/spec/lib/banzai/filter/gollum_tags_filter_spec.rb
@@ -37,8 +37,6 @@ describe Banzai::Filter::GollumTagsFilter, lib: true do
context 'linking external images' do
it 'creates img tag for valid URL' do
- expect(project_wiki).to receive(:find_file).with('http://example.com/image.jpg').and_return(nil)
-
tag = '[[http://example.com/image.jpg]]'
doc = filter("See #{tag}", project_wiki: project_wiki)
@@ -46,8 +44,6 @@ describe Banzai::Filter::GollumTagsFilter, lib: true do
end
it 'does not creates img tag for invalid URL' do
- expect(project_wiki).to receive(:find_file).with('http://example.com/image.pdf').and_return(nil)
-
tag = '[[http://example.com/image.pdf]]'
doc = filter("See #{tag}", project_wiki: project_wiki)