spec/gem_spec.rb in blackbox-3.1.2 vs spec/gem_spec.rb in blackbox-3.1.4

- old
+ new

@@ -51,12 +51,18 @@ it "schedules next check according to opt['check_interval']" do at = Time.parse('2015-10-21 07:28') Timecop.freeze(at) do retval = BB::Gem.version_info(check_interval: 60) - expect(retval).to include( - next_check_for_update: at + 60 - ) + if retval[:installed_is_latest] == false + expect(retval).to include( + next_check_for_update: at + ) + else + expect(retval).to include( + next_check_for_update: at + 60 + ) + end end end it 'schedules no check when disabled via env var' do ENV['BLACKBOX_DISABLE_VERSION_CHECK'] = '1'