updated tests for oneway

This commit is contained in:
Emil Tin 2012-02-13 14:37:43 +01:00
parent e44db8b9a7
commit e2a3fb5c61
2 changed files with 11 additions and 12 deletions

View File

@ -2,13 +2,18 @@
Feature: Oneway streets
Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing
@ba
Scenario: Simple oneway
Given the defaults
Given the speedprofile "car"
Then routability should be
| highway | oneway | forw | backw |
| primary | yes | x | |
Scenario: Simple reverse oneway
Given the speedprofile "car"
Then routability should be
| highway | oneway | forw | backw |
| primary | -1 | | x |
Scenario: Around the Block
Given the nodes
| a | b |
@ -43,12 +48,6 @@ Feature: Oneway streets
| b | x | |
| b | y | |
Scenario: Simplest possible oneway
Given the speedprofile "bicycle"
Then routability should be
| highway | oneway | forw | backw |
| primary | yes | x | |
Scenario: Handle various oneway tag values
Given the speedprofile "bicycle"
Then routability should be

View File

@ -7,7 +7,7 @@ Before do |scenario|
end
Around('@routing') do |scenario, block|
Timeout.timeout(5) do
Timeout.timeout(10) do
block.call
end
end