Fix FactoryBot deprecation warnings

This commit is contained in:
Tom Hughes 2018-08-28 19:12:01 +01:00
parent 6c597f614b
commit 06915a77b5
22 changed files with 70 additions and 70 deletions

View file

@ -1,13 +1,13 @@
FactoryBot.define do
factory :way do
timestamp Time.now
visible true
version 1
timestamp { Time.now }
visible { true }
version { 1 }
changeset
trait :deleted do
visible false
visible { false }
end
trait :with_history do
@ -27,7 +27,7 @@ FactoryBot.define do
factory :way_with_nodes do
transient do
nodes_count 1
nodes_count { 1 }
end
after(:create) do |way, evaluator|