scinote-web/spec/factories/sample_my_modules.rb

7 lines
165 B
Ruby
Raw Normal View History

2017-07-28 16:14:50 +08:00
FactoryGirl.define do
factory :sample_my_module do
sample { Sample.frist || create(:sample) }
my_module { MyModule.frist || create(:my_module) }
end
end