incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1029582 - /incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb
Date Mon, 01 Nov 2010 09:36:21 GMT
Author: mfojtik
Date: Mon Nov  1 09:36:20 2010
New Revision: 1029582

URL: http://svn.apache.org/viewvc?rev=1029582&view=rev
Log:
Fixed RSpec in server

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

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb?rev=1029582&r1=1029581&r2=1029582&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/instance_states_test.rb Mon Nov 
1 09:36:20 2010
@@ -45,7 +45,7 @@ module DeltacloudUnitTest
     def test_it_responses_to_png
       do_request '/api/instance_states', { :format => 'png' }, false
       last_response.status.should == 200
-      last_response.headers['Content-Type'].should == 'image/png'
+      last_response.headers['Content-Type'].should =~ /^image\/png/
     end
 
   end



Mime
View raw message