Module: FactoryGirl::Syntax::Methods
- Defined in:
- lib/spec_snap/factory_girl.rb
Instance Method Summary collapse
Instance Method Details
#create_large_list ⇒ Object
8 |
# File 'lib/spec_snap/factory_girl.rb', line 8 alias create_large_list create_list |
#create_list(name, amount, *traits_and_overrides, &block) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/spec_snap/factory_girl.rb', line 10 def create_list(name, amount, *traits_and_overrides, &block) unless small_amount_or_special_build?(amount) raise ArgumentError, "You asked to create #{amount} records. For the sake of test speed (and sanity), don't do this." end create_large_list(name, amount, *traits_and_overrides, &block) end |