spec/shared/mailbox_examples.rb in celluloid-0.17.0 vs spec/shared/mailbox_examples.rb in celluloid-0.17.1
- old
+ new
@@ -41,10 +41,10 @@
interval = 0.1
started_at = Time.now
expect do
subject.receive(interval) { false }
- end.to raise_exception(Celluloid::TimeoutError)
+ end.to raise_exception(Celluloid::TaskTimeout)
# Just check to make sure it didn't return earlier
expect(Time.now - started_at).to be >= interval
end