X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3fa3658efa4c528c499e72abf7464748cc6c7fb8..45f0589e624f111ffe85cf9c17bf43be8b839f2c:/test/factories/way.rb?ds=sidebyside diff --git a/test/factories/way.rb b/test/factories/way.rb index 1c31de3d0..f2093e305 100644 --- a/test/factories/way.rb +++ b/test/factories/way.rb @@ -1,13 +1,13 @@ -FactoryGirl.define do +FactoryBot.define do factory :way do - timestamp Time.now - visible true - version 1 + timestamp { Time.now.utc } + visible { true } + version { 1 } changeset trait :deleted do - visible false + visible { false } end trait :with_history do @@ -27,7 +27,7 @@ FactoryGirl.define do factory :way_with_nodes do transient do - nodes_count 1 + nodes_count { 1 } end after(:create) do |way, evaluator|