Sha256: 7cb2268d6327809ec7c48686fa3ee79d881e10be7c072d2be1f5271af85e09c9

Contents?: true

Size: 401 Bytes

Versions: 31

Compression:

Stored size: 401 Bytes

Contents

shared_examples_for 'search_association' do |association|
  context association do
    let(:association_operators) do
      base_class.search_operator_by_name.select { |_name, operator|
        operator.respond_to?(:association) and operator.association == association
      }
    end

    it 'should have operators for association' do
      association_operators.should_not be_empty
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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