diff options
author | Luke Kanies <luke@madstop.com> | 2007-12-18 16:47:36 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-12-18 16:47:36 -0600 |
commit | 92b0ebc7b74a29b5b875fc104a3681a264d49f03 (patch) | |
tree | 2badd88f2b14f1669613a924bc79184e3c2359f3 /spec/unit/parser/resource/reference.rb | |
parent | 1ada24d4d4aa9ccd9a37176aa3d105ec9874d208 (diff) | |
download | puppet-92b0ebc7b74a29b5b875fc104a3681a264d49f03.tar.gz puppet-92b0ebc7b74a29b5b875fc104a3681a264d49f03.tar.xz puppet-92b0ebc7b74a29b5b875fc104a3681a264d49f03.zip |
Fixing #967 -- relationships now work when running 0.23.x clients
against 0.24.0 servers.
Diffstat (limited to 'spec/unit/parser/resource/reference.rb')
-rwxr-xr-x | spec/unit/parser/resource/reference.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/unit/parser/resource/reference.rb b/spec/unit/parser/resource/reference.rb index 24b70d088..e7385f796 100755 --- a/spec/unit/parser/resource/reference.rb +++ b/spec/unit/parser/resource/reference.rb @@ -21,9 +21,14 @@ describe Puppet::Parser::Resource::Reference do ref.builtintype.should equal(Puppet::Type.type(:file)) end - it "should return a relationship-style resource reference when asked" do + it "should return a downcased relationship-style resource reference for defined types" do ref = @type.new(:type => "file", :title => "/tmp/yay") - ref.to_ref.should == ["File", "/tmp/yay"] + ref.to_ref.should == ["file", "/tmp/yay"] + end + + it "should return a capitalized relationship-style resource reference for defined types" do + ref = @type.new(:type => "whatever", :title => "/tmp/yay") + ref.to_ref.should == ["Whatever", "/tmp/yay"] end it "should return a resource reference string when asked" do |