Ensure invisible_way is actually deleted
[rails.git] / 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)