spec/lib/flapjack/executive_spec.rb in flapjack-0.6.29 vs spec/lib/flapjack/executive_spec.rb in flapjack-0.6.30
- old
+ new
@@ -32,13 +32,12 @@
shutdown_evt.should_receive(:state).and_return(nil)
shutdown_evt.should_receive(:summary).and_return(nil)
shutdown_evt.should_receive(:time).and_return(Time.now)
Flapjack::Data::Event.should_receive(:next).and_return(shutdown_evt)
- EventMachine::Synchrony::ConnectionPool.should_receive(:new).and_return(@redis)
-
executive = Flapjack::Executive.new
executive.bootstrap(:config => {})
+ 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)
executive.main