diff options
| author | Luke Kanies <luke@madstop.com> | 2008-08-24 20:53:25 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-08-26 22:40:41 -0700 |
| commit | 40e76fb83ef466425fec736abbf1913a6426bf01 (patch) | |
| tree | 59b4239f340260d58e026470b6c060334632a0d5 /spec/unit/network/http/webrick | |
| parent | 8ea25efd90b4d2281db12076cbaab3f766cac8b4 (diff) | |
| download | puppet-40e76fb83ef466425fec736abbf1913a6426bf01.tar.gz puppet-40e76fb83ef466425fec736abbf1913a6426bf01.tar.xz puppet-40e76fb83ef466425fec736abbf1913a6426bf01.zip | |
Fixing the rest backends for webrick and mongrel so the get the whole request key.
Also adding the Content work necessary to demonstrate that this is actually
required.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/network/http/webrick')
| -rwxr-xr-x | spec/unit/network/http/webrick/rest.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/network/http/webrick/rest.rb b/spec/unit/network/http/webrick/rest.rb index 620201472..1f4ccbe29 100755 --- a/spec/unit/network/http/webrick/rest.rb +++ b/spec/unit/network/http/webrick/rest.rb @@ -47,9 +47,9 @@ describe Puppet::Network::HTTP::WEBrickREST do @handler.path(@request).should == "/foo" end - it "should return the second field in the path as the request key" do - @request.expects(:path).returns "/foo/bar" - @handler.request_key(@request).should == "bar" + it "should return the remainder of the path as the request key" do + @request.expects(:path).returns "/foo/bar/baz" + @handler.request_key(@request).should == "bar/baz" end it "should return nil as the request key if there is no second field" do |
