better regex for matching origin in cuke test
This commit is contained in:
parent
3cf72e93e6
commit
d78faea737
@ -6,7 +6,7 @@ Given /^a grid size of (\d+) meters$/ do |meters|
|
|||||||
set_grid_size meters
|
set_grid_size meters
|
||||||
end
|
end
|
||||||
|
|
||||||
Given /^the origin lat\/lon (\d+),(\d+)$/ do |lat,lon|
|
Given /^the origin ([-+]?[0-9]*\.?[0-9]+),([-+]?[0-9]*\.?[0-9]+)$/ do |lat,lon|
|
||||||
set_origin [lon.to_f,lat.to_f]
|
set_origin [lon.to_f,lat.to_f]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user