spec/lib/flapjack/executive_spec.rb in flapjack-0.6.37 vs spec/lib/flapjack/executive_spec.rb in flapjack-0.6.38
- old
+ new
@@ -34,9 +34,10 @@
shutdown_evt.should_receive(:time).and_return(Time.now)
Flapjack::Data::Event.should_receive(:next).and_return(shutdown_evt)
executive = Flapjack::Executive.new
executive.bootstrap(:config => {})
+ @redis.should_receive(:empty!)
executive.should_receive(:build_redis_connection_pool).and_return(@redis)
# hacky, but the behaviour it's mimicking (shutdown from another thread) isn't
# conducive to nice tests
executive.stub(:should_quit?).and_return(false, true)