Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rspec factory create_list with association

user = create(:user)
foobar = create(:foobar)
blogs = create_list(:blog, 5, user: user, foobar: foobar)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rspec #factory #association
ADD COMMENT
Topic
Name
6+5 =