Added first attempt at bounding box support in changesets and tests for the same.
[rails.git] / test / unit / way_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class WayTest < Test::Unit::TestCase
4   api_fixtures
5
6   def test_bbox
7     node = current_nodes(:used_node_1)
8     [ :visible_way,
9       :invisible_way,
10       :used_way ].each do |way_symbol|
11       way = current_ways(way_symbol)
12       assert_equal node.bbox, way.bbox
13     end
14   end
15   
16 end