What more elegant way to do this in ruby way? I suppose this is good:
([0]*5).collect { Factory :customer_pj }
or
(1..5).to_a.collect { Factory :customer_pj }
My goal is to initialize 5 customers and put into array. I happen to be doing this in a let in an rspec test.
Since Andrew Marshall edited the question, the relevant part became this: