108
108
@instance = stub 'instance', :to_ral => @ral_res
109
109
@request = stub 'request', :key => "user/", :instance => @instance
110
110
@catalog = stub 'catalog'
112
114
Puppet::Resource::Catalog.stubs(:new).returns(@catalog)
114
116
@catalog.stubs(:add_resource)
117
119
it "should apply a new catalog with a ral object in it" do
118
120
Puppet::Resource::Catalog.expects(:new).returns(@catalog)
119
121
@catalog.expects(:add_resource).with(@ral_res)
124
126
it "should return a regular resource that used to be the ral resource" do