Sha256: 12b1596f3178eb243672da1e06ca9e1280554722b04dc32fad2f3f210034ff83
Contents?: true
Size: 888 Bytes
Versions: 31
Compression:
Stored size: 888 Bytes
Contents
shared_examples_for 'Metasploit::Model::Module::Instance is stanced with module_type' do |context_module_type| context "with #{context_module_type.inspect}" do # define as a let so that lets from outer context can access option to set detail. let(:module_type) do context_module_type end it "should have #{context_module_type.inspect} for module_class.module_type" do module_instance.module_class.module_type.should == module_type end it { should be_stanced } context 'with nil stance' do let(:stance) do nil end it { should be_invalid } end context "with 'aggresive' stance" do let(:stance) do 'aggressive' end it { should be_valid } end context "with 'passive' stance" do let(:stance) do 'passive' end it { should be_valid } end end end
Version data entries
31 entries across 31 versions & 1 rubygems