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