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

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

14 lines
384 B
Ruby
Raw Permalink Normal View History

2023-07-09 08:55:56 +05:30
# 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