summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-13 10:35:40 -0500
committerJames Turnbull <james@lovedthanlost.net>2008-10-14 08:44:30 +1100
commitb0fd2e057a7fbff59565febc3ebb60a33863ff85 (patch)
treee8fe75e91b586a8ef03b42d215379cd00337191f /spec
parent157c0ddff032bb78838a1448eb1ff989bf1da705 (diff)
downloadpuppet-b0fd2e057a7fbff59565febc3ebb60a33863ff85.tar.gz
puppet-b0fd2e057a7fbff59565febc3ebb60a33863ff85.tar.xz
puppet-b0fd2e057a7fbff59565febc3ebb60a33863ff85.zip
Fixing #1647 - puppetdoc's 'providers' report works again.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/integration/reference/providers.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/integration/reference/providers.rb b/spec/integration/reference/providers.rb
new file mode 100755
index 000000000..79b6ce12d
--- /dev/null
+++ b/spec/integration/reference/providers.rb
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f) : Dir.chdir("..") { s.call(f) } }).call("spec/spec_helper.rb") }
+
+require 'puppet/util/reference'
+
+reference = Puppet::Util::Reference.reference(:providers)
+
+describe reference do
+ it "should exist" do
+ reference.should_not be_nil
+ end
+
+ it "should be able to be rendered as text" do
+ lambda { reference.to_text }.should_not raise_error
+ end
+end