summaryrefslogtreecommitdiffstats
path: root/spec/unit/string/facts_spec.rb
blob: 9b70247242bff902be29ec0fe15a352da835bfa1 (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 File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')

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