Sha256: 471e60e5670e5980d5257c5f9557667428a670f94d38ea62421b3475f7571850

Contents?: true

Size: 322 Bytes

Versions: 35

Compression:

Stored size: 322 Bytes

Contents

shared_context 'Metasploit::Model::Search::Operator::Group::Union#children' do
  subject(:children) do
    operator.children(formatted_value)
  end

  def child(formatted_operator)
    operator_name = formatted_operator.to_sym

    children.find { |operation|
      operation.operator.name == operator_name
    }
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
metasploit-model-1.0.0.pre.rails.pre.4.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.30.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.30.0-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.29.2 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.29.2-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.29.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.29.0-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.28.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.28.0-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.4 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.4-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.3 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.3-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.2 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.2-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.1 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.1-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-0.27.0-java spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb