Commit 890eccf8 authored by nmilojevic1's avatar nmilojevic1 Committed by Nikola Milojevic

Fix specs description for session_store

parent 02715866
...@@ -15,7 +15,7 @@ RSpec.describe 'Session initializer for GitLab' do ...@@ -15,7 +15,7 @@ RSpec.describe 'Session initializer for GitLab' do
stub_env('GITLAB_REDIS_STORE_WITH_SESSION_STORE', nil) stub_env('GITLAB_REDIS_STORE_WITH_SESSION_STORE', nil)
end end
it 'returns the regular cookie without a suffix' do it 'initialized as a redis_store with a proper Redis::Store instance' do
expect(subject).to receive(:session_store).with(:redis_store, a_hash_including(redis_store: kind_of(::Redis::Store))) expect(subject).to receive(:session_store).with(:redis_store, a_hash_including(redis_store: kind_of(::Redis::Store)))
load_session_store load_session_store
...@@ -27,7 +27,7 @@ RSpec.describe 'Session initializer for GitLab' do ...@@ -27,7 +27,7 @@ RSpec.describe 'Session initializer for GitLab' do
stub_env('GITLAB_REDIS_STORE_WITH_SESSION_STORE', false) stub_env('GITLAB_REDIS_STORE_WITH_SESSION_STORE', false)
end end
it 'returns the regular cookie without a suffix' do it 'initialized as a redis_store with a proper servers configuration' do
expect(subject).to receive(:session_store).with(:redis_store, a_hash_including(servers: kind_of(Hash))) expect(subject).to receive(:session_store).with(:redis_store, a_hash_including(servers: kind_of(Hash)))
load_session_store load_session_store
......
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