spec/lib/flapjack/jabber_spec.rb in flapjack-0.6.29 vs spec/lib/flapjack/jabber_spec.rb in flapjack-0.6.30
- old
+ new
@@ -137,10 +137,10 @@
fj.bootstrap(:config => config)
fj.should_receive(:register_handler).exactly(4).times
fj.should_receive(:connect)
fj.should_receive(:connected?).exactly(3).times.and_return(true)
- fj.should_receive(:should_quit?).exactly(3).times.and_return(false, false, true)
+ fj.should_receive(:should_quit?).exactly(4).times.and_return(false, false, true)
redis.should_receive(:blpop).twice.and_return(
["jabber_notifications", %q{{"notification_type":"problem","event_id":"main-example.com:ping","state":"critical","summary":"!!!"}}],
["jabber_notifications", %q{{"notification_type":"shutdown"}}]
)