Sha256: f1739eefcd7c5c0b6602d4a7a427d53803444405854fe9565dafbb6293382929
Contents?: true
Size: 703 Bytes
Versions: 11
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' require 'fileutils' describe Arachni::RPC::Client::Dispatcher do before( :all ) do @handler_lib = Arachni::Options.paths.services FileUtils.cp( "#{fixtures_path}/services/echo.rb", @handler_lib ) @dispatcher = dispatcher_light_spawn end after( :all ) { FileUtils.rm( "#{@handler_lib}/echo.rb" ) } it 'maps the remote handlers to local objects' do args = [ 'stuff', 'here', { 'blah' => true } ] expect(@dispatcher.echo.echo( *args )).to eq(args) end describe '#node' do it 'provides access to the node data' do expect(@dispatcher.node.info.is_a?( Hash )).to be_truthy end end end
Version data entries
11 entries across 11 versions & 1 rubygems