summaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-16 10:38:15 -0500
committerLuke Kanies <luke@madstop.com>2008-05-16 10:38:15 -0500
commitbb41db0bf4221e394411d2a82b6de264b557fb95 (patch)
treefbc8773d5e6b5a708db24e3943ca3b3fb7f98880 /spec/integration
parent07a3d479b0e31aa7a1f8e6d0e178e440adc57030 (diff)
downloadfacter-bb41db0bf4221e394411d2a82b6de264b557fb95.tar.gz
facter-bb41db0bf4221e394411d2a82b6de264b557fb95.tar.xz
facter-bb41db0bf4221e394411d2a82b6de264b557fb95.zip
Switching to a search path registration system.
Facter no longer knows anything about Puppet, so there's no inter-dependency issue.
Diffstat (limited to 'spec/integration')
-rwxr-xr-xspec/integration/util/loader.rb26
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