mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
88d7429041
2. fixes gem dependencies issues 3. fixes failing migrations 4. updates depricated factory_girl => factory_bot and fixes related issues Signed-off-by: zmagod <zmago_devetak@yahoo.com>
6 lines
164 B
Ruby
6 lines
164 B
Ruby
FactoryBot.define do
|
|
factory :sample_my_module do
|
|
sample { Sample.frist || create(:sample) }
|
|
my_module { MyModule.frist || create(:my_module) }
|
|
end
|
|
end
|