spec/cuboid/rpc/client/base_spec.rb in cuboid-0.1.3 vs spec/cuboid/rpc/client/base_spec.rb in cuboid-0.1.4

- old
+ new

@@ -16,11 +16,11 @@ def url @server.url end def start - Arachni::Reactor.global.run_in_thread if !Arachni::Reactor.global.running? + Raktr.global.run_in_thread if !Raktr.global.running? @server.start sleep( 0.1 ) while !@server.ready? end def bar @@ -84,11 +84,11 @@ Server.new( server_ssl_options ) do |server| raised = false begin client = described_class.new( server.url, nil, client_ssl_options ) client.call( "foo.bar" ) - rescue Arachni::RPC::Exceptions::ConnectionError + rescue Toq::Exceptions::ConnectionError raised = true end expect(raised).to be_truthy end @@ -100,11 +100,11 @@ Server.new( server_ssl_options ) do |server| raised = false begin client = described_class.new( server.url, nil, empty_options ) client.call( "foo.bar" ) - rescue Arachni::RPC::Exceptions::ConnectionError + rescue Toq::Exceptions::ConnectionError raised = true end expect(raised).to be_truthy end @@ -135,10 +135,10 @@ Server.new( opts, token ) do |server| raised = false begin client = described_class.new( server.url, nil, empty_options ) client.call( "foo.bar" ) - rescue Arachni::RPC::Exceptions::InvalidToken + rescue Toq::Exceptions::InvalidToken raised = true end expect(raised).to be_truthy end