]> git.openstreetmap.org Git - rails.git/blob - test/unit/way_test.rb
more diary entry tests, and a minor fix to the relation member that makes the code...
[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