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-1.0.0.pre.rails.pre.4.0 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.30.0 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.30.0-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.29.2 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.29.2-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.29.0 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.29.0-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.28.0 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.28.0-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.4 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.4-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.3 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.3-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.2 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.2-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.1 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.1-java spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.0 spec/app/models/metasploit/model/search/operator/base_spec.rb
metasploit-model-0.27.0-java spec/app/models/metasploit/model/search/operator/base_spec.rb