blob: 0276a47bebf54be2afe07e787a60dc41a1a9e7c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
FactoryGirl.define do
factory :referential do
sequence(:name) { |n| "Test #{n}" }
sequence(:slug) { |n| "test_#{n}" }
sequence(:prefix) { |n| "test_#{n}" }
association :line_referential
association :stop_area_referential
association :organisation
time_zone "Europe/Paris"
ready { true }
objectid_format "stif_netex"
factory :workbench_referential do
association :workbench
before :create do | ref |
ref.workbench.organisation = ref.organisation
end
end
end
end
|