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 fe8dacf..3413530 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)