diff options
Diffstat (limited to 'spec/lib/banzai/filter/external_link_filter_spec.rb')
-rw-r--r-- | spec/lib/banzai/filter/external_link_filter_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/banzai/filter/external_link_filter_spec.rb b/spec/lib/banzai/filter/external_link_filter_spec.rb index 5ffbab0f12f..d9e4525cb28 100644 --- a/spec/lib/banzai/filter/external_link_filter_spec.rb +++ b/spec/lib/banzai/filter/external_link_filter_spec.rb @@ -15,7 +15,7 @@ describe Banzai::Filter::ExternalLinkFilter, lib: true do it 'skips internal links' do internal = Gitlab.config.gitlab.url - exp = act = %(<a href="#{internal}/sign_in">Login</a>) + exp = act = %Q(<a href="#{internal}/sign_in">Login</a>) expect(filter(act).to_html).to eq exp end @@ -70,8 +70,8 @@ describe Banzai::Filter::ExternalLinkFilter, lib: true do it 'skips internal links' do internal_link = Gitlab.config.gitlab.url + "/sign_in" url = internal_link.gsub(/\Ahttp/, 'HtTp') - act = %(<a href="#{url}">Login</a>) - exp = %(<a href="#{internal_link}">Login</a>) + act = %Q(<a href="#{url}">Login</a>) + exp = %Q(<a href="#{internal_link}">Login</a>) expect(filter(act).to_html).to eq(exp) end |