blob: 79b6ce12d0a117c76e5386101da4e6a94b3c8178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|