summaryrefslogtreecommitdiffstats
path: root/spec/unit/face/facts_spec.rb
blob: e6411f836d7aa1c6231950335a34d1619a462937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env rspec
require 'spec_helper'

describe Puppet::Face[:facts, '0.0.1'] do
  it "should define an 'upload' fact" do
    subject.should be_action(:upload)
  end

  it "should set its default format to :yaml" do
    subject.default_format.should == :yaml
  end

  describe "when uploading" do
    it "should set the terminus_class to :facter"

    it "should set the cach_eclass to :rest"

    it "should find the current certname"
  end
end