spec/node_spec.rb in dripdrop-0.9.10 vs spec/node_spec.rb in dripdrop-0.10.0.beta1
- old
+ new
@@ -70,13 +70,12 @@
describe "exceptions in EM reactor" do
class TestException < StandardError; end
it "should rescue exceptions in the EM reactor" do
- pending "Not sure if this feature is a good idea"
expectations = an_instance_of(TestException)
reactor = run_reactor do
- self.should_receive(:error_handler).with(expectations)
+ self.class.should_receive(:error_handler).with(expectations)
EM.next_tick do
raise TestException, "foo"
end
end
end