Permalink
Browse files

Changed response from request.request_method to match with rails3.bet…

…a3 expects
  • Loading branch information...
1 parent 3b0b9c5 commit 7c0c8e48912ab2cc6f243b76de7c882ef90aeee3 @gus gus committed Jun 4, 2010
@@ -12,7 +12,7 @@
context "without parameters" do
setup { delete "/rooms/destroy" }
- asserts("request method") { request.request_method }.equals(:delete)
+ asserts("request method") { request.request_method }.equals("DELETE")
asserts("action name") { action_name }.equals("destroy")
asserts("response status") { response.status }.equals(200)
asserts("response body") { response.body }.equals { "destroyed #{controller.params.inspect}" }
@@ -28,7 +28,7 @@
context "with parameters" do
setup { delete "/rooms/destroy", {:momma => "loves you", "love_you_too" => "mom"} }
- asserts("request method") { request.request_method }.equals(:delete)
+ asserts("request method") { request.request_method }.equals("DELETE")
asserts("action name") { action_name }.equals("destroy")
asserts("response status") { response.status }.equals(200)
@@ -15,7 +15,7 @@
asserts("action name") { action_name }.equals("index")
asserts("response status") { response.status }.equals(200)
asserts("response body") { response.body }.equals("foo")
- asserts("request method") { request.request_method }.equals(:get)
+ asserts("request method") { request.request_method }.equals("GET")
context "response headers" do
setup { response.headers.keys }
@@ -12,7 +12,7 @@
context "without parameters" do
setup { post "/rooms/create" }
- asserts("request method") { request.request_method }.equals(:post)
+ asserts("request method") { request.request_method }.equals("POST")
asserts("action name") { action_name }.equals("create")
asserts("response status") { response.status }.equals(200)
asserts("response body") { response.body }.equals { "created #{controller.params.inspect}" }
@@ -28,7 +28,7 @@
context "with parameters" do
setup { post "/rooms/create", {:momma => "loves you", "love_you_too" => "mom"} }
- asserts("request method") { request.request_method }.equals(:post)
+ asserts("request method") { request.request_method }.equals("POST")
asserts("action name") { action_name }.equals("create")
asserts("response status") { response.status }.equals(200)
@@ -12,7 +12,7 @@
context "without parameters" do
setup { put "/rooms/update" }
- asserts("request method") { request.request_method }.equals(:put)
+ asserts("request method") { request.request_method }.equals("PUT")
asserts("action name") { action_name }.equals("update")
asserts("response status") { response.status }.equals(200)
asserts("response body") { response.body }.equals { "updated #{controller.params.inspect}" }
@@ -28,7 +28,7 @@
context "with parameters" do
setup { put "/rooms/update", {:momma => "loves you", "love_you_too" => "mom"} }
- asserts("request method") { request.request_method }.equals(:put)
+ asserts("request method") { request.request_method }.equals("PUT")
asserts("action name") { action_name }.equals("update")
asserts("response status") { response.status }.equals(200)
@@ -5,7 +5,7 @@
context GremlinsController do
setup { delete("/gremlins/2") }
- asserts("request method") { request.request_method }.equals(:delete)
+ asserts("request method") { request.request_method }.equals("DELETE")
asserts("controller name") { controller.controller_name }.equals("gremlins")
asserts("action name") { controller.action_name }.equals("destroy")
asserts("id param") { controller.params["id"] }.equals("2")
@@ -15,7 +15,7 @@
context PartiesController do
setup { delete("/gremlins/2/parties/3", "foo" => "bar") }
- asserts("request method") { request.request_method }.equals(:delete)
+ asserts("request method") { request.request_method }.equals("DELETE")
asserts("controller name") { controller.controller_name }.equals("parties")
asserts("action name") { controller.action_name }.equals("destroy")
@@ -5,6 +5,7 @@
context GremlinsController do
setup { get("/gremlins/1") }
+ asserts("request method") { request.request_method }.equals("GET")
asserts("controller name") { controller.controller_name }.equals("gremlins")
asserts("action name") { controller.action_name }.equals("show")
asserts("id param") { controller.params["id"] }.equals("1")
@@ -14,6 +15,7 @@
context PartiesController do
setup { get("/gremlins/1/parties/2") }
+ asserts("request method") { request.request_method }.equals("GET")
asserts("controller name") { controller.controller_name }.equals("parties")
asserts("action name") { controller.action_name }.equals("show")
asserts("gremlin_id param") { controller.params["gremlin_id"] }.equals("1")
@@ -5,7 +5,7 @@
context GremlinsController do
setup { post("/gremlins", :id => 2) }
- asserts("request method") { request.request_method }.equals(:post)
+ asserts("request method") { request.request_method }.equals("POST")
asserts("controller name") { controller.controller_name }.equals("gremlins")
asserts("action name") { controller.action_name }.equals("create")
asserts("id param") { controller.params["id"] }.equals("2")
@@ -15,7 +15,7 @@
context PartiesController do
setup { post("/gremlins/2/parties", "id" => 3) }
- asserts("request method") { request.request_method }.equals(:post)
+ asserts("request method") { request.request_method }.equals("POST")
asserts("controller name") { controller.controller_name }.equals("parties")
asserts("action name") { controller.action_name }.equals("create")
asserts("gremlin_id param") { controller.params["gremlin_id"] }.equals("2")
@@ -5,7 +5,7 @@
context GremlinsController do
setup { put("/gremlins/2") }
- asserts("request method") { request.request_method }.equals(:put)
+ asserts("request method") { request.request_method }.equals("PUT")
asserts("controller name") { controller.controller_name }.equals("gremlins")
asserts("action name") { controller.action_name }.equals("update")
asserts("id param") { controller.params["id"] }.equals("2")
@@ -15,7 +15,7 @@
context PartiesController do
setup { put("/gremlins/2/parties/3", "foo" => "bar") }
- asserts("request method") { request.request_method }.equals(:put)
+ asserts("request method") { request.request_method }.equals("PUT")
asserts("controller name") { controller.controller_name }.equals("parties")
asserts("action name") { controller.action_name }.equals("update")

0 comments on commit 7c0c8e4

Please sign in to comment.