~ubuntu-branches/ubuntu/vivid/puppet-module-puppetlabs-concat/vivid-proposed

« back to all changes in this revision

Viewing changes to spec/unit/facts/concat_basedir_spec.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2014-10-24 22:11:25 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141024221125-rqg7i2eo53afnz8d
Tags: 1.1.1-1
* Imported upstream relase 1.1.1
* Declare compliance with Debian policy 3.9.6
* Update debian/control metadata with cme (Vcs-*)
* Update dependencies
* Update file lists

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'spec_helper'
 
2
 
 
3
describe 'concat_basedir', :type => :fact do
 
4
  before(:each) { Facter.clear }
 
5
 
 
6
  context 'Puppet[:vardir] ==' do
 
7
    it '/var/lib/puppet' do
 
8
      Puppet.stubs(:[]).with(:vardir).returns('/var/lib/puppet')
 
9
      Facter.fact(:concat_basedir).value.should == '/var/lib/puppet/concat'
 
10
    end
 
11
 
 
12
    it '/home/apenny/.puppet/var' do
 
13
      Puppet.stubs(:[]).with(:vardir).returns('/home/apenny/.puppet/var')
 
14
      Facter.fact(:concat_basedir).value.should == '/home/apenny/.puppet/var/concat'
 
15
    end
 
16
  end
 
17
 
 
18
end