spec/io_coordinator_spec.rb in elevate-0.5.0 vs spec/io_coordinator_spec.rb in elevate-0.6.0

- old
+ new

@@ -28,9 +28,17 @@ @coordinator.cancel() lambda { @coordinator.send(method, "hello") }.should.raise(Elevate::CancelledError) end end + + describe "when IO has timed out" do + it "raises TimeoutError" do + @coordinator.cancel(Elevate::TimeoutError) + + lambda { @coordinator.send(method, "hello") }.should.raise(Elevate::TimeoutError) + end + end end end describe "#uninstall" do it "removes the coordinator from a thread-local variable" do