From 23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Mon, 29 Mar 2010 17:10:40 -0700 Subject: REST: hide Request object This change to the REST branch restores some sanity by explicitly allowing a destination URL for indirector save() calls, removing a hack that I was using to accomplish this. --- spec/unit/network/http/handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/network/http/handler.rb') diff --git a/spec/unit/network/http/handler.rb b/spec/unit/network/http/handler.rb index 2218a0a78..e6dd88130 100755 --- a/spec/unit/network/http/handler.rb +++ b/spec/unit/network/http/handler.rb @@ -402,7 +402,7 @@ describe Puppet::Network::HTTP::Handler do end it "should use a common method for determining the request parameters" do - @model_instance.expects(:save).with(@irequest) + @model_instance.expects(:save).with('key').once @handler.do_save(@irequest, @request, @response) end -- cgit