incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1067894 - /incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
Date Mon, 07 Feb 2011 09:46:34 GMT
Author: mfojtik
Date: Mon Feb  7 09:46:34 2011
New Revision: 1067894

URL: http://svn.apache.org/viewvc?rev=1067894&view=rev
Log:
Added unit test for HEAD on collection

Modified:
    incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb?rev=1067894&r1=1067893&r2=1067894&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb Mon Feb  7 09:46:34 2011
@@ -66,5 +66,12 @@ module DeltacloudUnitTest
         last_response.status.should == 404
       end
     end
+
+    def test_it_repond_to_head
+      head '/api/instances'
+      last_response.headers['Allow'].should_not == nil
+      last_response.headers['Allow'].split(',').include?('HEAD').should == true
+    end
+
   end
 end



Mime
View raw message