Sha256: 3d4bfb9c9af96010b2aa65ab450d45c972a1b4d321e80008d469f9f1bffdf0bb
Contents?: true
Size: 927 Bytes
Versions: 340
Compression:
Stored size: 927 Bytes
Contents
require 'spec_helper' require 'puppet/indirector/none' describe Puppet::Indirector::None do before do allow(Puppet::Indirector::Terminus).to receive(:register_terminus_class) allow(Puppet::Indirector::Indirection).to receive(:instance).and_return(indirection) module Testing; end @none_class = class Testing::None < Puppet::Indirector::None self end @data_binder = @none_class.new end let(:model) { double('model') } let(:request) { double('request', :key => "port") } let(:indirection) do double('indirection', :name => :none, :register_terminus_type => nil, :model => model) end it "should not be the default data_binding_terminus" do expect(Puppet.settings[:data_binding_terminus]).not_to eq('none') end describe "the behavior of the find method" do it "should just return nil" do expect(@data_binder.find(request)).to be_nil end end end
Version data entries
340 entries across 340 versions & 1 rubygems