Commit 40ffa840 authored by Alexis Reigel's avatar Alexis Reigel

add request store caching to favicon

parent 85a8e6f2
......@@ -24,7 +24,7 @@ module Gitlab
private
def appearance
Appearance.current || Appearance.new
RequestStore.store[:appearance] ||= (Appearance.current || Appearance.new)
end
def appearance_favicon
......
require 'rails_helper'
RSpec.describe Gitlab::Favicon do
RSpec.describe Gitlab::Favicon, :request_store do
describe '.default' do
it 'defaults to favicon.ico' do
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new('production'))
......
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