mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
6 lines
165 B
Ruby
6 lines
165 B
Ruby
FactoryGirl.define do
|
|
factory :sample_my_module do
|
|
sample { Sample.frist || create(:sample) }
|
|
my_module { MyModule.frist || create(:my_module) }
|
|
end
|
|
end
|