Sha256: 0f181f14d1b96df75621f2a6972e51ecd79835fbacef2d6a2cb90290686cf965

Contents?: true

Size: 633 Bytes

Versions: 31

Compression:

Stored size: 633 Bytes

Contents

shared_examples_for 'Metasploit::Model::Module::Instance is not 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_not be_stanced }

    context 'with nil stance' do
      let(:stance) do
        nil
      end

      it { should be_valid }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.28.0-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.4 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.4-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.3 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.3-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.2 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.2-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.1 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.1-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.0 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.0-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.26.1-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.26.1 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.25.7 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.25.7-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.25.6 spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
metasploit-model-0.25.6-java spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb