debian-mirror-gitlab/spec/lib/gitlab/redis/rate_limiting_spec.rb
2023-05-27 22:25:52 +05:30

13 lines
397 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Redis::RateLimiting do
include_examples "redis_new_instance_shared_examples", 'rate_limiting', Gitlab::Redis::Cache
describe '.cache_store' do
it 'uses the CACHE_NAMESPACE namespace' do
expect(described_class.cache_store.options[:namespace]).to eq(Gitlab::Redis::Cache::CACHE_NAMESPACE)
end
end
end