Sha256: 9b9d8dab378b4841f8dc4130fdac788895189eacd2c460148f4525634ab8929f
Contents?: true
Size: 864 Bytes
Versions: 35
Compression:
Stored size: 864 Bytes
Contents
#!/usr/bin/env rspec require 'spec_helper' require 'puppet/indirector/code' describe Puppet::Indirector::Code do before :all do Puppet::Indirector::Terminus.stubs(:register_terminus_class) @model = mock 'model' @indirection = stub 'indirection', :name => :mystuff, :register_terminus_type => nil, :model => @model Puppet::Indirector::Indirection.stubs(:instance).returns(@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 @searcher.should_not respond_to(:find) end it "should not have a save() method defined" do @searcher.should_not respond_to(:save) end it "should not have a destroy() method defined" do @searcher.should_not respond_to(:destroy) end end
Version data entries
35 entries across 35 versions & 3 rubygems