📜  带有关联的 rspec factory create_list - Ruby 代码示例
📅  最后修改于: 2022-03-11 15:04:45.760000             🧑  作者: Mango
代码示例1
user = create(:user)
foobar = create(:foobar)
blogs = create_list(:blog, 5, user: user, foobar: foobar)