Sha256: 90e16edf6812804f44921e7dad88d990d6671976d616f2c2909fd9bac142f314

Contents?: true

Size: 692 Bytes

Versions: 10

Compression:

Stored size: 692 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 } ]
        @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

10 entries across 10 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.2 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.1 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0.6 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0.5 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0.4 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0.3 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0.2 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0.1 spec/arachni/rpc/client/dispatcher_spec.rb
arachni-1.0 spec/arachni/rpc/client/dispatcher_spec.rb