summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-12-10 15:39:27 -0600
committerLuke Kanies <luke@madstop.com>2008-12-18 11:10:22 -0600
commit6b14000ae54a11da3fa16c1b4685f630abca869b (patch)
tree236f1368e876279e7f614ec43b949d6288af02c4 /spec/unit/parser
parente3b1590f57a18b89c5f97ca0aa8e8d2bd9187b58 (diff)
Using Puppet::Resource to convert parser resources to RAL resources
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/parser')
-rwxr-xr-xspec/unit/parser/resource.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/parser/resource.rb b/spec/unit/parser/resource.rb
index 37fd44387..5ae8a644a 100755
--- a/spec/unit/parser/resource.rb
+++ b/spec/unit/parser/resource.rb
@@ -64,10 +64,10 @@ describe Puppet::Parser::Resource do
@resource[:one].should == "yay"
end
- it "should have a method for converting to a ral resource" do
- trans = mock 'trans', :to_type => "yay"
+ it "should use a Puppet::Resource for converting to a ral resource" do
+ trans = mock 'resource', :to_type => "yay"
@resource = mkresource
- @resource.expects(:to_trans).returns trans
+ @resource.expects(:to_resource).returns trans
@resource.to_type.should == "yay"
end