diff options
Diffstat (limited to 'spec/lib/gitlab/redis/feature_flag_spec.rb')
-rw-r--r-- | spec/lib/gitlab/redis/feature_flag_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/lib/gitlab/redis/feature_flag_spec.rb b/spec/lib/gitlab/redis/feature_flag_spec.rb new file mode 100644 index 00000000000..49d15ea1b4a --- /dev/null +++ b/spec/lib/gitlab/redis/feature_flag_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Gitlab::Redis::FeatureFlag, feature_category: :redis do + include_examples "redis_new_instance_shared_examples", 'feature_flag', Gitlab::Redis::Cache + + describe '.cache_store' do + it 'has a default ttl of 1 hour' do + expect(described_class.cache_store.options[:expires_in]).to eq(1.hour) + end + end +end |