You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2010/11/01 10:43:28 UTC

svn commit: r1029584 - in /incubator/deltacloud/trunk/tests: ec2/step_definitions/instance_states_steps.rb mock/step_definitions/instance_states_steps.rb

Author: mfojtik
Date: Mon Nov  1 09:43:28 2010
New Revision: 1029584

URL: http://svn.apache.org/viewvc?rev=1029584&view=rev
Log:
Fixed Cucumber features for instance states

Modified:
    incubator/deltacloud/trunk/tests/ec2/step_definitions/instance_states_steps.rb
    incubator/deltacloud/trunk/tests/mock/step_definitions/instance_states_steps.rb

Modified: incubator/deltacloud/trunk/tests/ec2/step_definitions/instance_states_steps.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/tests/ec2/step_definitions/instance_states_steps.rb?rev=1029584&r1=1029583&r2=1029584&view=diff
==============================================================================
--- incubator/deltacloud/trunk/tests/ec2/step_definitions/instance_states_steps.rb (original)
+++ incubator/deltacloud/trunk/tests/ec2/step_definitions/instance_states_steps.rb Mon Nov  1 09:43:28 2010
@@ -30,5 +30,5 @@ end
 
 Then /^client should get PNG image$/ do
   last_response.status.should == 200
-  last_response.headers['Content-Type'].should == 'image/png'
+  last_response.headers['Content-Type'].should =~ /^image\/png/
 end

Modified: incubator/deltacloud/trunk/tests/mock/step_definitions/instance_states_steps.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/tests/mock/step_definitions/instance_states_steps.rb?rev=1029584&r1=1029583&r2=1029584&view=diff
==============================================================================
--- incubator/deltacloud/trunk/tests/mock/step_definitions/instance_states_steps.rb (original)
+++ incubator/deltacloud/trunk/tests/mock/step_definitions/instance_states_steps.rb Mon Nov  1 09:43:28 2010
@@ -30,5 +30,5 @@ end
 
 Then /^client should get PNG image$/ do
   last_response.status.should == 200
-  last_response.headers['Content-Type'].should == 'image/png'
+  last_response.headers['Content-Type'].should =~ /^image\/png/
 end