Added first attempt at bounding box support in changesets and tests for the same.

This commit is contained in:
Matt Amos 2008-11-04 15:52:22 +00:00
parent 0ca779e5bd
commit 02fbcf5f06
7 changed files with 189 additions and 7 deletions

16
test/unit/way_test.rb Normal file
View file

@ -0,0 +1,16 @@
require File.dirname(__FILE__) + '/../test_helper'
class WayTest < Test::Unit::TestCase
api_fixtures
def test_bbox
node = current_nodes(:used_node_1)
[ :visible_way,
:invisible_way,
:used_way ].each do |way_symbol|
way = current_ways(way_symbol)
assert_equal node.bbox, way.bbox
end
end
end