Files
gitlab-foss/spec/lib/gitlab/redis/sessions_spec.rb
2025-03-14 12:13:03 +00:00

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