spec/integration/coolio/connection_start_spec.rb in amq-client-0.7.0.alpha25 vs spec/integration/coolio/connection_start_spec.rb in amq-client-0.7.0.alpha26
- old
+ new
@@ -32,14 +32,17 @@
context "when given no errback" do
it "should raise an error" do
expect {
coolio do
- AMQ::Client::CoolioClient.connect(:port => 12938) { }
- done(0.5)
+ begin
+ AMQ::Client::CoolioClient.connect(:port => 12938) { }
+ done
+ rescue Exception => e
+ done(0.5)
+ end
end
}.to raise_error(AMQ::Client::TCPConnectionFailed)
end
- end
- end
-
-end
+ end # context
+ end # context
+end # describe