Sha256: c0ecedfaca17cd6b56aeaa76e411c88fc656acefcff86e4d985ebbc9e0f7ced9

Contents?: true

Size: 678 Bytes

Versions: 38

Compression:

Stored size: 678 Bytes

Contents

require 'spec_helper'

describe Metasploit::Model::Search::Operator::Base do
  subject(:operator) do
    described_class.new
  end

  it_should_behave_like 'Metasploit::Model::Search::Operator::Help' do
    let(:operator) do
      described_class.new(klass: klass)
    end

    before(:each) do
      # have to stub since it's not implemented on base
      operator.stub(name: name)
    end
  end

  context 'validations' do
    it { should validate_presence_of(:klass) }
  end

  context '#name' do
    subject(:name) do
      operator.name
    end

    it 'should not be implemented' do
      expect {
        name
      }.to raise_error(NotImplementedError)
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
metasploit-model-0.27.0.pre.dep.pre.railties spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.26.1-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.26.1 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.7 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.7-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.6 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.6-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.3 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.3-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.2 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.2-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.1 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.1-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.24.1-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.24.1 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/app/models/metasploit/model/search/operator/base_spec.rb