Sha256: d69db89bbfb48cc74c9134dc6112003c07b1510b754c0d5b569a2c6185621f71
Contents?: true
Size: 890 Bytes
Versions: 36
Compression:
Stored size: 890 Bytes
Contents
require 'spec_helper' require 'puppet/indirector/code' describe Puppet::Indirector::Code do before(:each) do allow(Puppet::Indirector::Terminus).to receive(:register_terminus_class) @model = double('model') @indirection = double('indirection', :name => :mystuff, :register_terminus_type => nil, :model => @model) allow(Puppet::Indirector::Indirection).to receive(:instance).and_return(@indirection) module Testing; end @code_class = class Testing::MyCode < Puppet::Indirector::Code self end @searcher = @code_class.new end it "should not have a find() method defined" do expect(@searcher).not_to respond_to(:find) end it "should not have a save() method defined" do expect(@searcher).not_to respond_to(:save) end it "should not have a destroy() method defined" do expect(@searcher).not_to respond_to(:destroy) end end
Version data entries
36 entries across 36 versions & 1 rubygems