spec/lib/flapjack/gateways/pagerduty_spec.rb in flapjack-0.6.50 vs spec/lib/flapjack/gateways/pagerduty_spec.rb in flapjack-0.6.51
- old
+ new
@@ -99,9 +99,10 @@
'service_key' => '12345678',
'subdomain"' => 'flpjck',
'username' => 'flapjack',
'password' => 'password123'
}])
+ entity_check.should_receive(:entity_name).exactly(2).times.and_return('foo-app-01.bar.net:PING')
entity_check.should_receive(:create_acknowledgement).with('summary' => 'Acknowledged on PagerDuty')
Flapjack::Data::Global.should_receive(:unacknowledged_failing_checks).and_return([entity_check])
fp.should_receive(:pagerduty_acknowledged?).and_return({})