updated turn restriction tests. use correct .osrm.restrictions file during tests. add tests for no-right-turn

This commit is contained in:
Emil Tin
2012-03-02 13:35:30 +01:00
parent 9fdb6eb2c5
commit b0ecb869f2
3 changed files with 230 additions and 58 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ end
Given /^the relations$/ do |table|
table.hashes.each do |row|
relation = OSM::Relation.new make_osm_id, OSM_USER, OSM_TIMESTAMP
relation << { :type => :restriction, :restriction => 'no_left_turn' }
relation << { :type => :restriction, :restriction => row['restriction'] }
from_way = find_way_by_name(row['from'])
raise "*** unknown way '#{row['from']}'" unless from_way
to_way = find_way_by_name(row['to'])