Sha256: e2442c324dc4b8990527f4bf045ed830c8d18933861b1617febe0d4d19762616
Contents?: true
Size: 915 Bytes
Versions: 597
Compression:
Stored size: 915 Bytes
Contents
require 'spec_helper' require 'puppet/indirector/data_binding/none' describe Puppet::DataBinding::None do it "should be a subclass of the None terminus" do expect(Puppet::DataBinding::None.superclass).to equal(Puppet::Indirector::None) end it "should have documentation" do expect(Puppet::DataBinding::None.doc).not_to be_nil end it "should be registered with the data_binding indirection" do indirection = Puppet::Indirector::Indirection.instance(:data_binding) expect(Puppet::DataBinding::None.indirection).to equal(indirection) end it "should have its name set to :none" do expect(Puppet::DataBinding::None.name).to eq(:none) end describe "the behavior of the find method" do it "should just throw :no_such_key" do data_binding = Puppet::DataBinding::None.new expect { data_binding.find('fake_request') }.to throw_symbol(:no_such_key) end end end
Version data entries
597 entries across 597 versions & 1 rubygems