Sha256: 45fb885cb430416abf83f6b0f72cd3ca1be87fbd1bbc5952b9e80b79777ee949

Contents?: true

Size: 503 Bytes

Versions: 51

Compression:

Stored size: 503 Bytes

Contents

RSpec.shared_examples_for 'Mdm::Module::Detail does not support stance with mtype' do |mtype|
  context "with #{mtype.inspect}" do
    # define as a let so that lets from outer context can access option to set detail.
    let(:mtype) do
      mtype
    end

    it 'should return false for supports_stance?' do
      expect(detail.supports_stance?).to eq(false)
    end

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

      it { is_expected.to be_valid }
    end
  end
end

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
metasploit_data_models-6.0.6 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
wg-metasploit_data_models-4.1.4.02 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-6.0.5 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-6.0.4 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-6.0.3 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-6.0.2 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-6.0.1 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-6.0.0 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.6 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.5 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.4 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.3 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.2 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.1 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-5.0.0 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-4.1.4 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-4.1.3 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-4.1.2 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-4.1.1 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb
metasploit_data_models-4.1.0 spec/support/shared/examples/mdm/module/detail/does_not_support_stance_with_mtype.rb