add request store caching to favicon

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册