diff options
| author | Paul Berry <paul@puppetlabs.com> | 2011-01-11 11:45:58 -0800 |
|---|---|---|
| committer | Paul Berry <paul@puppetlabs.com> | 2011-01-11 11:45:58 -0800 |
| commit | bf2b07158f5e4e16e7a1a52e84257ae5d84d9e1c (patch) | |
| tree | cf51e75f954847fda264b561a7a3acdfa5869dda /spec/unit/network | |
| parent | e6e88e7df7fa1cbec1400d73cb7ba9428c420be0 (diff) | |
| parent | a002231f45339da9b152162c2f48126d95e2e246 (diff) | |
| download | puppet-bf2b07158f5e4e16e7a1a52e84257ae5d84d9e1c.tar.gz puppet-bf2b07158f5e4e16e7a1a52e84257ae5d84d9e1c.tar.xz puppet-bf2b07158f5e4e16e7a1a52e84257ae5d84d9e1c.zip | |
Merge branch 'ticket/2.6.next/5171-filebucket-diff' into 2.6.next
* ticket/2.6.next/5171-filebucket-diff:
(#5171) Made filebucket able to perform diffs
Diffstat (limited to 'spec/unit/network')
| -rwxr-xr-x | spec/unit/network/http/handler_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/network/http/handler_spec.rb b/spec/unit/network/http/handler_spec.rb index 76a9c5530..cdbce41f7 100755 --- a/spec/unit/network/http/handler_spec.rb +++ b/spec/unit/network/http/handler_spec.rb @@ -209,6 +209,12 @@ describe Puppet::Network::HTTP::Handler do @handler.do_find(@irequest, @request, @response) end + it "should pass the result through without rendering it if the result is a string" do + @model_class.stubs(:find).returns "foo" + @handler.expects(:set_response).with(@response, "foo") + @handler.do_find(@irequest, @request, @response) + end + it "should use the default status when a model find call succeeds" do @handler.expects(:set_response).with { |response, body, status| status.nil? } @handler.do_find(@irequest, @request, @response) |
