diff options
Diffstat (limited to 'spec/integration/util')
-rwxr-xr-x | spec/integration/util/loader.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/integration/util/loader.rb b/spec/integration/util/loader.rb deleted file mode 100755 index af569cd..0000000 --- a/spec/integration/util/loader.rb +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env ruby - -require File.dirname(__FILE__) + '/../../spec_helper' - -require 'facter/util/loader' - -begin - require 'puppet' -rescue LoadError - # Oh well, no Puppet :/ -end - -describe Facter::Util::Loader do - if defined?(Puppet) - describe "when the Puppet libraries are loaded" do - before { @loader = Facter::Util::Loader.new } - it "should include the factdest setting" do - @loader.search_path.should be_include(Puppet.settings.value(:factdest)) - end - - it "should include the facter subdirectory of the libdir setting" do - @loader.search_path.should be_include(File.join(Puppet.settings.value(:libdir), "facter")) - end - end - end -end |