mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
17 lines
589 B
Ruby
17 lines
589 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe Gitlab::Redis::Sessions, feature_category: :shared do
|
|
include_examples "redis_new_instance_shared_examples", 'sessions', Gitlab::Redis::SharedState
|
|
|
|
describe '#store' do
|
|
subject(:store) { described_class.store(namespace: described_class::SESSION_NAMESPACE) }
|
|
|
|
# Check that Gitlab::Redis::Sessions is configured as RedisStore or ClusterStore
|
|
it 'instantiates an instance of Redis::Store' do
|
|
expect([::Redis::Store, ::Gitlab::Redis::ClusterStore].include?(store.class)).to eq(true)
|
|
end
|
|
end
|
|
end
|