spec/deprecate/future_spec.rb in celluloid-0.17.1.2 vs spec/deprecate/future_spec.rb in celluloid-0.17.2
- old
+ new
@@ -17,12 +17,12 @@
future = Celluloid::Future.new { fail ExampleError, "oh noes crash!" }
expect { future.value }.to raise_exception(ExampleError)
end
it "knows if it's got a value yet" do
- future = Celluloid::Future.new { sleep CelluloidSpecs::TIMER_QUANTUM * 5 }
+ future = Celluloid::Future.new { sleep Specs::TIMER_QUANTUM * 5 }
expect(future).not_to be_ready
- sleep CelluloidSpecs::TIMER_QUANTUM * 6
+ sleep Specs::TIMER_QUANTUM * 6
expect(future).to be_ready
end
it "raises TaskTimeout when the future times out" do
future = Celluloid::Future.new { sleep 2 }