2021-11-05 08:10:25 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'Session initializer for GitLab' do
|
|
|
|
subject { Gitlab::Application.config }
|
|
|
|
|
|
|
|
let(:load_session_store) do
|
|
|
|
load Rails.root.join('config/initializers/session_store.rb')
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'config#session_store' do
|
2022-01-13 01:14:35 -05:00
|
|
|
it 'initialized as a redis_store with a proper servers configuration' do
|
|
|
|
expect(subject).to receive(:session_store).with(:redis_store, a_hash_including(redis_store: kind_of(::Redis::Store)))
|
2021-11-05 08:10:25 -04:00
|
|
|
|
2022-01-13 01:14:35 -05:00
|
|
|
load_session_store
|
2021-11-05 08:10:25 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|