-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
factory :way_with_nodes do
transient do
- nodes_count 1
+ nodes_count { 1 }
end
after(:create) do |way, evaluator|