Sha256: ac977fb4ed59a4b0fb5f7655d1f3f78c2fdb154a5d5afe128d9c0777560fdaa3

Contents?: true

Size: 853 Bytes

Versions: 66

Compression:

Stored size: 853 Bytes

Contents

shared_examples_for 'MetasploitDataModels::Search::Visitor::Relation#visit matching record with Metasploit::Model::Search::Operator::Deprecated::Platform' do |options={}|
  options.assert_valid_keys(:name)

  name = options.fetch(:name)

  context "with #{name}" do
    let(:formatted) do
      "#{name}:\"#{value}\""
    end

    context 'with Mdm::Platform#fully_qualified_name' do
      let(:value) do
        matching_record.platforms.sample.fully_qualified_name
      end

      it 'should find only matching record' do
        expect(visit).to match_array([matching_record])
      end
    end

    context 'with Mdm::Module::Target#name' do
      let(:value) do
        matching_record.targets.sample.name
      end

      it 'should find only matching record' do
        expect(visit).to match_array([matching_record])
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.5 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.24.4 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.24.3 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.24.2 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.24.1.pre.rspec.pre.3.pre.1 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.24.1 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-1.0.0.pre.rails.pre.4.0a spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.24.0 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.3.pre.autoload spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.2 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.2-java spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.1 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.1-java spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.0 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.23.0-java spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.22.8 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.22.8-java spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.22.7 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.22.7-java spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
metasploit_data_models-0.22.6 spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb