Sha256: 282a143a102f17edc9440b32ca1e6ef79cdade571ca30fb119875595e97477e8
Contents?: true
Size: 885 Bytes
Versions: 96
Compression:
Stored size: 885 Bytes
Contents
require 'spec_helper' require 'puppet/indirector/none' describe Puppet::Indirector::None do before do Puppet::Indirector::Terminus.stubs(:register_terminus_class) Puppet::Indirector::Indirection.stubs(:instance).returns(indirection) module Testing; end @none_class = class Testing::None < Puppet::Indirector::None self end @data_binder = @none_class.new end let(:model) { mock('model') } let(:request) { stub('request', :key => "port") } let(:indirection) do stub('indirection', :name => :none, :register_terminus_type => nil, :model => model) end it "should not be the default data_binding_terminus" do Puppet.settings[:data_binding_terminus].should_not == 'none' end describe "the behavior of the find method" do it "should just return nil" do @data_binder.find(request).should be_nil end end end
Version data entries
96 entries across 96 versions & 2 rubygems