1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Joshua Clayton
89d5e944d5 Refactor Strategies
This changes Strategy from a class to a module and removes inheritance.
It introduces an Evaluation facade to make building strategies easier
2012-04-13 17:20:02 -04:00
Joshua Clayton
7f5acac32c Use a null strategy so association behaves in a similar way across all strategy subclasses 2012-03-30 17:30:20 -04:00
Joshua Clayton
6c29b11477 Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
Joshua Clayton
eca05c948f Remove support for :method to define build strategy 2012-03-16 13:17:15 -04:00
Barun Singh
68ca50f4a6 fix FactoryRunner#run bug re: uncompiled factory 2012-03-09 14:18:02 -05:00
Joshua Clayton
4145a6e744 Replace AssociationRunner with more generic FactoryRunner 2012-03-02 17:11:00 -05:00
Joshua Clayton
791591bd58 Deprecate :method in favor of :strategy 2012-02-17 14:23:17 -05:00
Joshua Clayton
4dd67d1fb7 Move override handling into the evaluator 2012-02-10 18:19:18 -05:00
Joshua Clayton
7b2fbeac5c Add AssociationRunner for running associations from strategies
This extracts logic for running factories based on name and either
strategy class, symbol representing a strategy, or nil (defaulting to
the create strategy)
2012-02-10 18:19:17 -05:00
Joshua Clayton
b79a525c09 Proxy => Strategy 2012-02-10 18:19:17 -05:00
Renamed from spec/support/shared_examples/proxy.rb (Browse further)