incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1155308 - /incubator/deltacloud/trunk/tests/sbc/step_definitions/common_steps.rb
Date Tue, 09 Aug 2011 11:10:41 GMT
Author: mfojtik
Date: Tue Aug  9 11:10:41 2011
New Revision: 1155308

URL: http://svn.apache.org/viewvc?rev=1155308&view=rev
Log:
SBC: Fixed cucumber steps

Modified:
    incubator/deltacloud/trunk/tests/sbc/step_definitions/common_steps.rb

Modified: incubator/deltacloud/trunk/tests/sbc/step_definitions/common_steps.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/tests/sbc/step_definitions/common_steps.rb?rev=1155308&r1=1155307&r2=1155308&view=diff
==============================================================================
--- incubator/deltacloud/trunk/tests/sbc/step_definitions/common_steps.rb (original)
+++ incubator/deltacloud/trunk/tests/sbc/step_definitions/common_steps.rb Tue Aug  9 11:10:41
2011
@@ -24,9 +24,9 @@ end
 
 Given /^result should be valid ([A-Z]+)$/ do |format|
   if format == 'HTML'
-    last_response.body.should =~ /^\<\!DOCTYPE html PUBLIC/
+    last_response.body.should =~ /^\<\!DOCTYPE html/
   else
-    last_response.body.should_not =~ /^\<\!DOCTYPE html PUBLIC/
+    last_response.body.should_not =~ /^\<\!DOCTYPE html/
   end
 end
 
@@ -75,4 +75,4 @@ end
 
 Then /^([a-z_]+) of this ([A-Za-z_]+) should be ([\.0-9a-zA-Z_-]+)$/ do |property, object,
value|
   (xml/"/#{object}/#{property}").text.strip.should == value.strip
-end
\ No newline at end of file
+end



Mime
View raw message