Commit c21c9d5a authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'single-codebase-favicon-specs' into 'master'

Extracted EE specific lines from favicon_spec.rb

See merge request gitlab-org/gitlab-ee!12404
parents e996a57a 920e728a
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Gitlab::Favicon, :request_store do
describe '.main' do
it 'has green favicon for development' do
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new('development'))
expect(described_class.main).to match_asset_path 'favicon-green.png'
end
end
end
......@@ -7,9 +7,9 @@ RSpec.describe Gitlab::Favicon, :request_store do
expect(described_class.main).to match_asset_path '/assets/favicon.png'
end
it 'has green favicon for development' do
it 'has blue favicon for development', unless: Gitlab.ee? do
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new('development'))
expect(described_class.main).to match_asset_path 'favicon-green.png'
expect(described_class.main).to match_asset_path '/assets/favicon-blue.png'
end
it 'has yellow favicon for canary' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment