diff options
Diffstat (limited to 'spec/unit/parser/resource.rb')
-rwxr-xr-x | spec/unit/parser/resource.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/parser/resource.rb b/spec/unit/parser/resource.rb index 776e9c742..6b2021916 100755 --- a/spec/unit/parser/resource.rb +++ b/spec/unit/parser/resource.rb @@ -64,6 +64,13 @@ 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" + @resource = mkresource + @resource.expects(:to_trans).returns trans + @resource.to_type.should == "yay" + end + describe "when initializing" do before do @arguments = {:type => "resource", :title => "testing", :scope => stub('scope', :source => mock('source'))} |