debian-mirror-gitlab/spec/lib/gitlab/redis/rate_limiting_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
397 B
Ruby
Raw Permalink Normal View History

2021-11-18 22:05:49 +05:30
# 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
2023-04-23 21:23:45 +05:30
describe '.cache_store' do
2023-05-27 22:25:52 +05:30
it 'uses the CACHE_NAMESPACE namespace' do
expect(described_class.cache_store.options[:namespace]).to eq(Gitlab::Redis::Cache::CACHE_NAMESPACE)
2023-04-23 21:23:45 +05:30
end
end
2021-11-18 22:05:49 +05:30
end