X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4347d9d3b00a8fffe78daa93eac5b490905f9ac8..a8fcf9034b4c0ed0d4d3672bf7d86685adda44f3:/test/models/way_test.rb diff --git a/test/models/way_test.rb b/test/models/way_test.rb index 6b166ec7e..8674b3790 100644 --- a/test/models/way_test.rb +++ b/test/models/way_test.rb @@ -27,17 +27,16 @@ class WayTest < ActiveSupport::TestCase node_c = create(:node) way = create(:way_with_nodes, :nodes_count => 1) # Take one of the current ways and add nodes to it until we are near the limit - assert way.valid? + assert_predicate way, :valid? # it already has 1 node 1.upto(Settings.max_number_of_way_nodes / 2) do way.add_nd_num(node_a.id) way.add_nd_num(node_b.id) end way.save - # print way.nds.size - assert way.valid? + assert_predicate way, :valid? way.add_nd_num(node_c.id) - assert way.valid? + assert_predicate way, :valid? end def test_from_xml_no_id