Sha256: 068253dacddb295e3dece66b7b28176c826203a190a8f8e7fe6451cd1a78f0a2
Contents?: true
Size: 1.24 KB
Versions: 9
Compression:
Stored size: 1.24 KB
Contents
require 'spec_helper' describe Arachni::RPC::Server::Module::Manager do describe '#available' do it 'returns an array of available modules' do instance_spawn.modules.available.should be_any end end describe '#loaded' do context 'when there are loaded modules' do it 'returns an empty array' do instance_spawn.modules.loaded.should be_empty end end context 'when there are loaded modules' do it 'returns an array of loaded modules' do modules = instance_spawn.modules modules.loaded.should be_empty modules.load '*' modules.loaded.should be_any end end end describe '#load' do it 'loads modules by name' do modules = instance_spawn.modules modules.loaded.should be_empty modules.load 'test' modules.loaded.should == ['test'] end end describe '#load_all' do it 'loads all modules' do modules = instance_spawn.modules modules.loaded.should be_empty modules.load_all modules.loaded.should == modules.available end end end
Version data entries
9 entries across 9 versions & 1 rubygems