]> git.openstreetmap.org Git - rails.git/commitdiff
Give factory created traces a size
authorTom Hughes <tom@compton.nu>
Sun, 13 Oct 2019 11:18:57 +0000 (12:18 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 13 Oct 2019 11:18:57 +0000 (12:18 +0100)
Traces which are marked as inserted are expected to have a size.

test/factories/traces.rb

index 8663ccf2795eb8866b032b6ef85736ca9a5fed1e..713a5be17ee9aa84fcd76c35de3ee486c5c64ae7 100644 (file)
@@ -7,6 +7,7 @@ FactoryBot.define do
 
     timestamp { Time.now }
     inserted { true }
+    size { 10 }
 
     trait :deleted do
       visible { false }