Initial work for re-packaging as gem.
This commit is contained in:
parent
3820a5cdb6
commit
42175ca94a
6 changed files with 109 additions and 26 deletions
|
@ -5,7 +5,7 @@ class ActiveSupport::TestCase
|
|||
factory_girl_args = args.shift || {}
|
||||
|
||||
if n
|
||||
returning Array.new do |collection|
|
||||
Array.new.tap do |collection|
|
||||
n.times.each { collection << Factory.build(factory.to_s.singularize.to_sym, factory_girl_args) }
|
||||
end
|
||||
else
|
||||
|
@ -19,7 +19,7 @@ class ActiveSupport::TestCase
|
|||
factory_girl_args = args.shift || {}
|
||||
|
||||
if n
|
||||
returning Array.new do |collection|
|
||||
Array.new.tap do |collection|
|
||||
n.times.each { collection << Factory.create(factory.to_s.singularize.to_sym, factory_girl_args) }
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue