Sha256: 2c350df03e027acc4fcf38034c7dcd4c82325203131b0dac8825f99bc5c6422c

Contents?: true

Size: 328 Bytes

Versions: 30

Compression:

Stored size: 328 Bytes

Contents

RSpec.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

30 entries across 30 versions & 1 rubygems

Version Path
metasploit-model-5.0.2 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-5.0.1 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-5.0.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.6 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.5 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.4 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.3 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.2 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.1 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-4.0.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-3.1.4 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-3.1.3 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-3.1.2 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-3.1.1 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-3.1.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-3.0.0 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-2.0.4 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-2.0.3 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-2.0.2 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
metasploit-model-2.0.1 spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb