spec/support/lib/web_server_client.rb in cuboid-0.1.3 vs spec/support/lib/web_server_client.rb in cuboid-0.1.4
- old
+ new
@@ -1,24 +1,24 @@
-require 'arachni/rpc'
+require 'toq'
# @note Needs `ENV['WEB_SERVER_DISPATCHER']` in the format of `host:port`.
#
# {WebServerManager}-API-compatible client for the {WebServerAgent}.
#
# Delegates test webserver creation to the machine running {WebServerAgent},
# for hosts that lack support for fast servers (like Windows, which can't run
# Thin, Puma etc.).
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
-class WebServerClient < Arachni::RPC::Proxy
+class WebServerClient < Toq::Proxy
include Singleton
def initialize( options = {} )
@host, port = ENV['WEB_SERVER_DISPATCHER'].split( ':' )
- Arachni::Reactor.global.run_in_thread if !Arachni::Reactor.global.running?
+ Raktr.global.run_in_thread if !Raktr.global.running?
- client = Arachni::RPC::Client.new( host: @host, port: port )
+ client = Toq::Client.new( host: @host, port: port )
super client, 'server'
end
def protocol_for( name )
name.to_s.include?( 'https' ) ? 'https' : 'http'