diff options
Diffstat (limited to 'spec/lib/version_check_spec.rb')
-rw-r--r-- | spec/lib/version_check_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lib/version_check_spec.rb b/spec/lib/version_check_spec.rb index 736a8f9595e..1803dd66ba7 100644 --- a/spec/lib/version_check_spec.rb +++ b/spec/lib/version_check_spec.rb @@ -9,6 +9,20 @@ RSpec.describe VersionCheck do end end + context 'reactive cache properties' do + describe '.reactive_cache_refresh_interval' do + it 'returns 12.hours' do + expect(described_class.reactive_cache_refresh_interval).to eq(12.hours) + end + end + + describe '.reactive_cache_lifetime' do + it 'returns 7.days' do + expect(described_class.reactive_cache_lifetime).to eq(7.days) + end + end + end + describe '#calculate_reactive_cache' do context 'response code is 200' do before do |