From 92b0ebc7b74a29b5b875fc104a3681a264d49f03 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 18 Dec 2007 16:47:36 -0600 Subject: Fixing #967 -- relationships now work when running 0.23.x clients against 0.24.0 servers. --- spec/unit/parser/resource/reference.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'spec/unit/parser/resource/reference.rb') 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 -- cgit