Sha256: 042d0a851566fc4e527fd388c2b6e1f211b14163c2531bacd8ad8544257e3508

Contents?: true

Size: 572 Bytes

Versions: 92

Compression:

Stored size: 572 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'
require 'puppet/face'

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

  describe "when uploading" do
    it "should set the terminus_class to :facter"
    it "should set the cache_class to :rest"
    it "should find the current certname"
  end

  describe "#find" do
    it { should be_action :find }

    it "should fail without a key" do
      expect { subject.find }.to raise_error ArgumentError, /wrong number of arguments/
    end
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.7 spec/unit/face/facts_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.6 spec/unit/face/facts_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.5 spec/unit/face/facts_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.4 spec/unit/face/facts_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.3 spec/unit/face/facts_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.2 spec/unit/face/facts_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/face/facts_spec.rb
puppet-3.8.1 spec/unit/face/facts_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/face/facts_spec.rb