Commit 5bd847d

mo k <mo@mokhan.ca>
2012-08-13 21:12:38
convert feature to use an examples table.
1 parent af1588b
Changed files (1)
features/navigation.feature
@@ -3,9 +3,13 @@ Feature: Navigation
   As a NASA employee
   I want to find out the final coordinates.
 
-  Scenario: Navigate a rover
-    Given the plateau is 5 by 5
-    And the starting position is '1 2 N'
-    And I move "LMLMLMLMM"
+  Scenario Outline: Navigate a rover
+    Given the plateau is <start_x> by <start_y>
+    And the starting position is '<starting_position>'
+    And I move "<instructions>"
     When I tell the rover to travel
-    Then the rovers final position should be '1 3 N' on the screen.
+    Then the rovers final position should be '<result>' on the screen.
+
+    Examples:
+      | start_x | start_y | starting_position | instructions  | result |
+      | 5       | 5       | 1 2 N             | LMLMLMLMM     | 1 3 N  |