Create an old_way factory, and start using it for tests.
This commit is contained in:
parent
b46028b4f7
commit
05a42281ab
2 changed files with 30 additions and 24 deletions
10
test/factories/old_way.rb
Normal file
10
test/factories/old_way.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue