updated tests for oneway
This commit is contained in:
parent
e44db8b9a7
commit
e2a3fb5c61
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user