summaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration')
-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