Update cucumber 0.2 > 0.3 0

Posted by fwoeck
on Saturday, April 18

Das aktuelle cucumber-Update auf die Version 0.3 führt auf Anhieb zu einer hässlichen Fehlermeldung, weil die Art und Weise, wie das world-Objekt verwaltet wird sich geändert hat. In dieses schreibt man für gewöhnlich seine Helfermethoden, um den Objectspace nicht zu vermüllen.

Eine kleine Modifikation dieser Methoden (hier in /features/support/paths.rb) tut’s:

pplpool(devel) > git diff HEAD^
diff --git a/features/support/paths.rb b/features/support/paths.rb
index 925e67a..218c5a6 100644
--- a/features/support/paths.rb
+++ b/features/support/paths.rb
@@ -13,7 +13,5 @@ module NavigationHelpers
   end
 end

-World do |world|
-  world.extend NavigationHelpers
-  world
-end
+World(NavigationHelpers)
+
Comments

Leave a response

Comment