]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/way_test.rb
Avoid showing table header when there are no results
[rails.git] / test / models / way_test.rb
index fb37be1b4fdfb40b31a49957222ae32f9b1dd036..3c44f2f26bd6ddb5975920b2e6948038defb5e4f 100644 (file)
@@ -29,7 +29,7 @@ class WayTest < ActiveSupport::TestCase
     # Take one of the current ways and add nodes to it until we are near the limit
     assert way.valid?
     # it already has 1 node
-    1.upto(MAX_NUMBER_OF_WAY_NODES / 2) do
+    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