Sha256: 92226e491c7db7f16cbd489ea00bc8feaaef575ea85d4c75597d520f2ed5e8f9
Contents?: true
Size: 699 Bytes
Versions: 9
Compression:
Stored size: 699 Bytes
Contents
require 'spec_helper' require 'fileutils' describe Arachni::RPC::Client::Dispatcher do before( :all ) do @handler_lib = Arachni::Options.dir['rpcd_handlers'] FileUtils.cp( "#{fixtures_path}/rpcd_handlers/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 } ] @dispatcher.echo.echo( *args ).should == args end describe '#node' do it 'provides access to the node data' do @dispatcher.node.info.is_a?( Hash ).should be_true end end end
Version data entries
9 entries across 9 versions & 1 rubygems