Create an old_way factory, and start using it for tests.

This commit is contained in:
Andy Allan 2017-04-25 15:53:52 +02:00
parent b46028b4f7
commit 05a42281ab
2 changed files with 30 additions and 24 deletions

10
test/factories/old_way.rb Normal file
View file

@ -0,0 +1,10 @@
FactoryGirl.define do
factory :old_way do
timestamp Time.now
visible true
version 1
changeset
association :current_way, :factory => :way
end
end