update tests for DELETE added previously webid
authorHenry Story <henry.story@bblfish.net>
Thu, 05 Apr 2012 15:38:42 +0200
branchwebid
changeset 188 7eab55c485c6
parent 187 7c66ffcf3853
child 189 fe677af72eb3
update tests for DELETE added previously
src/test/scala/OtherSpecs.scala
--- a/src/test/scala/OtherSpecs.scala	Wed Apr 04 23:53:09 2012 +0200
+++ b/src/test/scala/OtherSpecs.scala	Thu Apr 05 15:38:42 2012 +0200
@@ -20,9 +20,9 @@
 object DeleteResourceSpec extends SomeDataInStore {
 
   """a DELETE request""" should {
-    "not be supported yet" in {
-      val statusCode = Http.when(_ == 405)(uri.copy(method="DELETE") get_statusCode)
-      statusCode must_== 405
+    "not delete the resource" in {
+      val statusCode = Http.when(_ == 204)(uri.copy(method="DELETE") get_statusCode)
+      statusCode must_== 204
     }
   }