Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-03-03 20:56:02 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-03-06 21:54:46 +0300
commitf602efea65c2a816c7e29be546d2eb412fe538cc (patch)
tree3b58078142d489dd2cd69a782830e92f687b3ca3 /spec/lib/banzai/filter/emoji_filter_spec.rb
parent2d6492561c8b34595abc3638f8991d7aa6af7151 (diff)
Fix wrong image src with cached gl-emoji and relative root
Diffstat (limited to 'spec/lib/banzai/filter/emoji_filter_spec.rb')
-rw-r--r--spec/lib/banzai/filter/emoji_filter_spec.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/lib/banzai/filter/emoji_filter_spec.rb b/spec/lib/banzai/filter/emoji_filter_spec.rb
index f365949f5bf..707212e07fd 100644
--- a/spec/lib/banzai/filter/emoji_filter_spec.rb
+++ b/spec/lib/banzai/filter/emoji_filter_spec.rb
@@ -88,11 +88,6 @@ describe Banzai::Filter::EmojiFilter, lib: true do
expect(doc.css('gl-emoji').first.attr('data-name')).to eq 'thumbsdown'
end
- it 'has a data-fallback-src attribute' do
- doc = filter(':-1:')
- expect(doc.css('gl-emoji').first.attr('data-fallback-src')).to end_with '.png'
- end
-
it 'has a data-unicode-version attribute' do
doc = filter(':-1:')
expect(doc.css('gl-emoji').first.attr('data-unicode-version')).to eq '6.0'
@@ -109,18 +104,4 @@ describe Banzai::Filter::EmojiFilter, lib: true do
expect(doc.to_html).to match(/^This deserves a <gl-emoji.+>, big time\.\z/)
end
-
- it 'uses a custom asset_host context' do
- ActionController::Base.asset_host = 'https://cdn.example.com'
-
- doc = filter(':frowning:', asset_host: 'https://this-is-ignored-i-guess?')
- expect(doc.css('gl-emoji').first.attr('data-fallback-src')).to start_with('https://cdn.example.com')
- end
-
- it 'uses a custom asset_host context' do
- ActionController::Base.asset_host = 'https://cdn.example.com'
-
- doc = filter("'🎱'", asset_host: 'https://this-is-ignored-i-guess?')
- expect(doc.css('gl-emoji').first.attr('data-fallback-src')).to start_with('https://cdn.example.com')
- end
end