]> git.openstreetmap.org Git - rails.git/commitdiff
Ensure invisible_way is actually deleted
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 17 May 2017 15:05:23 +0000 (16:05 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 17 May 2017 15:05:23 +0000 (16:05 +0100)
test/models/way_test.rb

index fe8dacf33179746aa506a9f006f432059d13df48..34135304665804db9c0c53a1a834e9dfb693fc23 100644 (file)
@@ -13,7 +13,7 @@ class WayTest < ActiveSupport::TestCase
     node = create(:node)
     visible_way = create(:way)
     create(:way_node, :way => visible_way, :node => node)
-    invisible_way = create(:way)
+    invisible_way = create(:way, :deleted)
     create(:way_node, :way => invisible_way, :node => node)
     used_way = create(:way)
     create(:way_node, :way => used_way, :node => node)