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