Welcome to mirror list, hosted at ThFree Co, Russian Federation.

feature_flag_spec.rb « redis « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 49d15ea1b4af5350063df2ea31a49f6faf80b280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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