Sha256: 30cbc66c7e3f7aa5b3d78294315364051af3b0f45bb9564d007eee0459f674ee

Contents?: true

Size: 870 Bytes

Versions: 22

Compression:

Stored size: 870 Bytes

Contents

RSpec.describe Metasploit::Model::Search::Operator::Help do
  it_should_behave_like 'Metasploit::Model::Search::Operator::Help' do
    let(:operator) do
      operator_class.new(
          klass: klass,
          name: name
      )
    end

    let(:operator_class) do
      described_class = self.described_class

      Class.new(Metasploit::Model::Base) do
        include described_class

        #
        # Attributes
        #

        # @!attribute [rw] name
        #   Name of this operator
        #
        #   @return [String]
        attr_accessor :name

        # @!attribute [rw] klass
        #   Class being searched
        #
        #   @return [Class]
        attr_accessor :klass
      end
    end

    before(:example) do
      # operator needs to be named or mode_name will fail.
      stub_const('OperatorClass', operator_class)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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