Sha256: a4a128c6c28ba90de31ba65977203a9ddd303ad11d821f7ff0dee9db5f3de194

Contents?: true

Size: 405 Bytes

Versions: 7

Compression:

Stored size: 405 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
      expect(association_operators).not_to be_empty
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metasploit-model-1.0.0.pre.rails.pre.4.0 spec/support/shared/examples/search_association.rb
metasploit-model-0.30.0 spec/support/shared/examples/search_association.rb
metasploit-model-0.30.0-java spec/support/shared/examples/search_association.rb
metasploit-model-0.29.2 spec/support/shared/examples/search_association.rb
metasploit-model-0.29.2-java spec/support/shared/examples/search_association.rb
metasploit-model-0.29.0 spec/support/shared/examples/search_association.rb
metasploit-model-0.29.0-java spec/support/shared/examples/search_association.rb