spec/lib/flapjack/gateways/web_spec.rb in flapjack-1.5.0 vs spec/lib/flapjack/gateways/web_spec.rb in flapjack-1.6.0rc1

- old
+ new

@@ -173,11 +173,10 @@ last_notifications = {:problem => {:timestamp => time.to_i - ((3 * 60 * 60) + (5 * 60)), :summary => 'prob'}, :recovery => {:timestamp => time.to_i - (3 * 60 * 60), :summary => nil}, :acknowledgement => {:timestamp => nil, :summary => nil} } - expect_check_stats expect(entity_check).to receive(:state).and_return('ok') expect(entity_check).to receive(:last_update).and_return(time.to_i - (3 * 60 * 60)) expect(entity_check).to receive(:last_change).and_return(time.to_i - (3 * 60 * 60)) expect(entity_check).to receive(:summary).and_return('all good') expect(entity_check).to receive(:details).and_return('seriously, all very wonderful') @@ -189,9 +188,11 @@ expect(entity_check).to receive(:current_maintenance).with(:scheduled => false).and_return(false) expect(entity_check).to receive(:contacts).and_return([]) expect(entity_check).to receive(:historical_states). with(nil, time.to_i, :order => 'desc', :limit => 20).and_return([]) expect(entity_check).to receive(:enabled?).and_return(true) + expect(entity_check).to receive(:initial_failure_delay).exactly(2).times.and_return(30) + expect(entity_check).to receive(:repeat_failure_delay).exactly(2).times.and_return(60) expect(Flapjack::Data::Entity).to receive(:find_by_name). with(entity_name, :redis => redis).and_return(entity) expect(Flapjack::Data::EntityCheck).to receive(:for_entity).