spec/lib/flapjack/gateways/web_spec.rb in flapjack-0.8.10 vs spec/lib/flapjack/gateways/web_spec.rb in flapjack-0.8.11
- old
+ new
@@ -132,9 +132,10 @@
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')
+ expect(entity_check).to receive(:perfdata).and_return([{"key" => "foo", "value" => "bar"}])
expect(entity_check).to receive(:last_notifications_of_each_type).and_return(last_notifications)
expect(entity_check).to receive(:maintenances).with(nil, nil, :scheduled => true).and_return([])
expect(entity_check).to receive(:failed?).and_return(false)
expect(entity_check).to receive(:current_maintenance).with(:scheduled => true).and_return(false)
expect(entity_check).to receive(:current_maintenance).with(:scheduled => false).and_return(false)