use alt=false during cucumber testing

This commit is contained in:
Emil Tin 2013-05-10 17:17:24 +02:00
parent 411603ea03
commit 9588ef00a5
3 changed files with 11 additions and 10 deletions

View File

@ -41,14 +41,14 @@ Feature: Bike - Squares and other areas
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | b | | | a | b | xa |
| a | d | | | a | d | xa |
| b | c | | | b | c | xa |
| c | b | | | c | b | xa |
| c | d | | | c | d | xa |
| d | c | | | d | c | xa |
| d | a | | | d | a | xa |
| a | d | | | a | d | xa |
@parking @parking
Scenario: Bike - parking areas Scenario: Bike - parking areas

View File

@ -27,7 +27,7 @@ rescue Timeout::Error
end end
def request_route waypoints, params={} def request_route waypoints, params={}
defaults = { 'output' => 'json', 'instructions' => true, 'alt' => true } defaults = { 'output' => 'json', 'instructions' => true, 'alt' => false }
request_path "viaroute", waypoints, defaults.merge(params) request_path "viaroute", waypoints, defaults.merge(params)
end end

View File

@ -27,6 +27,7 @@ Feature: Handle bad data in a graceful manner
| from | to | route | | from | to | route |
| a | b | ab | | a | b | ab |
@todo
Scenario: Start/end point at the same location Scenario: Start/end point at the same location
Given the node map Given the node map
| a | b | | a | b |