diff options
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/network/http/mongrel/rest.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/network/http/mongrel/rest.rb b/spec/unit/network/http/mongrel/rest.rb index 5a5d2cfec..abd573a25 100755 --- a/spec/unit/network/http/mongrel/rest.rb +++ b/spec/unit/network/http/mongrel/rest.rb @@ -92,6 +92,11 @@ describe "Puppet::Network::HTTP::MongrelREST" do @request.stubs(:params).returns({}) end + it "should skip empty parameter values" do + @request.expects(:params).returns('QUERY_STRING' => "&=") + lambda { @handler.params(@request) }.should_not raise_error + end + it "should include the HTTP request parameters, with the keys as symbols" do @request.expects(:params).returns('QUERY_STRING' => 'foo=baz&bar=xyzzy') result = @handler.params(@request) |
