summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2007-10-16 18:14:41 -0500
committerRick Bradley <rick@rickbradley.com>2007-10-16 18:14:41 -0500
commite5921c5a8025d4e908a5a9b010a126f0b1d5ed15 (patch)
treeed3a248ef3c5b1c86705c1e90c64f5b0e0f2e6b9 /spec
parent705f76fa1d9a95c54560a82e68c1c47b27755361 (diff)
downloadpuppet-e5921c5a8025d4e908a5a9b010a126f0b1d5ed15.tar.gz
puppet-e5921c5a8025d4e908a5a9b010a126f0b1d5ed15.tar.xz
puppet-e5921c5a8025d4e908a5a9b010a126f0b1d5ed15.zip
getting more fine-grained with the response specs -- the target is always moving.
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/network/http/mongrel/rest.rb12
-rw-r--r--spec/unit/network/http/webrick/rest.rb12
2 files changed, 18 insertions, 6 deletions
diff --git a/spec/unit/network/http/mongrel/rest.rb b/spec/unit/network/http/mongrel/rest.rb
index 0ad9be2bc..7df63db14 100644
--- a/spec/unit/network/http/mongrel/rest.rb
+++ b/spec/unit/network/http/mongrel/rest.rb
@@ -176,7 +176,13 @@ describe Puppet::Network::HTTP::MongrelREST, "when receiving a request" do
@handler.process(@mock_request, @mock_response)
end
- it "should serialize the result from the controller method for return back to Mongrel"
-
- it "should serialize a controller exception result for return back to Mongrel"
+ it "should generate a 200 response when a model find call succeeds"
+ it "should generate a 200 response when a model search call succeeds"
+ it "should generate a 200 response when a model destroy call succeeds"
+ it "should generate a 200 response when a model save call succeeds"
+ it "should return a serialized object when a model find call succeeds"
+ it "should return a list of serialized object matches when a model search call succeeds"
+ it "should return a serialized success result when a model destroy call succeeds"
+ it "should return a serialized success result when a model save call succeeds"
+ it "should serialize a controller exception when an exception is thrown by the handler"
end
diff --git a/spec/unit/network/http/webrick/rest.rb b/spec/unit/network/http/webrick/rest.rb
index e5132595b..bd4bd304c 100644
--- a/spec/unit/network/http/webrick/rest.rb
+++ b/spec/unit/network/http/webrick/rest.rb
@@ -174,7 +174,13 @@ describe Puppet::Network::HTTP::WEBrickREST, "when receiving a request" do
@handler.service(@mock_request, @mock_response)
end
- it "should serialize the result from the controller method for return back to Mongrel"
-
- it "should serialize a controller exception result for return back to Mongrel"
+ it "should generate a 200 response when a model find call succeeds"
+ it "should generate a 200 response when a model search call succeeds"
+ it "should generate a 200 response when a model destroy call succeeds"
+ it "should generate a 200 response when a model save call succeeds"
+ it "should return a serialized object when a model find call succeeds"
+ it "should return a list of serialized object matches when a model search call succeeds"
+ it "should return a serialized success result when a model destroy call succeeds"
+ it "should return a serialized success result when a model save call succeeds"
+ it "should serialize a controller exception when an exception is thrown by the handler"
end