summaryrefslogtreecommitdiffstats
path: root/spec/unit/faces/facts_spec.rb
blob: 46496a8392f01995d14d84d8c8b656dee19fe3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby

require 'spec_helper'

describe Puppet::Faces[: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