summaryrefslogtreecommitdiff
path: root/spec/unit/indirector/data_binding/hiera_spec.rb
blob: 12572b174946abf672466f606960b6a9d8222fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'
require 'puppet/indirector/data_binding/hiera'

describe Puppet::DataBinding::Hiera do
  it "should have documentation" do
    Puppet::DataBinding::Hiera.doc.should_not be_nil
  end

  it "should be registered with the data_binding indirection" do
    indirection = Puppet::Indirector::Indirection.instance(:data_binding)
    Puppet::DataBinding::Hiera.indirection.should equal(indirection)
  end

  it "should have its name set to :hiera" do
    Puppet::DataBinding::Hiera.name.should == :hiera
  end

  it_should_behave_like "Hiera indirection", Puppet::DataBinding::Hiera, my_fixture_dir
end