Initial work for re-packaging as gem.

This commit is contained in:
Victor Costan 2010-07-06 12:40:02 -04:00 committed by Zach Dennis
parent 3820a5cdb6
commit 42175ca94a
6 changed files with 109 additions and 26 deletions

View file

@ -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