]> git.openstreetmap.org Git - rails.git/blob - test/factories/old_way.rb
use a controller method to handle cancan denials
[rails.git] / test / factories / old_way.rb
1 FactoryBot.define do
2   factory :old_way do
3     timestamp Time.now
4     visible true
5     version 1
6
7     changeset
8     association :current_way, :factory => :way
9   end
10 end