Fix FactoryBot deprecation warnings
This commit is contained in:
parent
6c597f614b
commit
06915a77b5
22 changed files with 70 additions and 70 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue