Vasiliy Ermolovich
bca13f1165
use AS deprecation warn, silence deprecations in specs
2012-03-27 08:55:04 -04:00
Joshua Clayton
6fe00e76c1
Deprecate the vintage syntax
2012-03-16 16:43:23 -04:00
Joshua Clayton
6c29b11477
Use 1.9 hash syntax
2012-03-16 16:43:23 -04:00
Joshua Clayton
7623531324
Remove default_strategy
2012-03-16 13:17:15 -04:00
Joshua Clayton
b79a525c09
Proxy => Strategy
2012-02-10 18:19:17 -05:00
Justin Ko
334b8a9449
No more "should"'s in the example descriptions.
...
Closes #216
2011-10-14 10:09:51 -04:00
Joshua Clayton
e28bdb8e63
Fix factory definitions so parents can be defined AFTER child factories
2011-09-23 17:57:20 -04:00
Joshua Clayton
f8638b3085
Fix vintage syntax and add spec for creating child factories with vintage syntax
2011-09-23 15:49:32 -04:00
Joe Ferris and Josh Clayton
a154e64da1
Introduce declarations
...
Declarations are another layer of abstraction between defining the
factories via the DSL and compiling the factories and their attributes.
Declarations know how to return their attribute(s), and running a
factory compiles the declarations before building all attributes on the
factory. This moves all the attribute compilation logic into one
centralized location on the Factory instance, which means traits (and
potentially other features down the road) can have individual attributes
overridden within child factories or through FactoryGirl.modify
Closes #205
2011-09-23 13:14:02 -04:00
Joshua Clayton
744177cb84
Suggestions
2011-08-19 17:22:10 -04:00
Joshua Clayton
0b2c4da0a4
Move DefineConstant code into macro
2011-08-19 17:21:54 -04:00
Joshua Clayton
554e6ab378
rr => mocha
2011-08-13 00:12:47 -04:00
Robert Lowe
2ba2dc1c15
Add new machinist make and make! syntax
...
*This commit is not backwards-compatible* as it breaks existing use of
make (which currently creates instead of builds)
2011-06-28 14:41:18 -04:00
Joe Ferris
c59981de1b
Split factories/sequences into separate registries most of the time;
...
Only use factories from step definitions
2011-05-25 20:08:59 -04:00
Joe Ferris
5aea0f4096
Use a registry class for keeping factories and sequences. Treat
...
sequences largely like factories. Refactor name and aliases into a
common names method.
2011-01-27 20:15:33 -05:00
Joe Ferris
a7f7e85187
Updated docs and examples for new syntax
2011-01-26 20:55:06 -05:00
Joe Ferris
2d1c77984b
Split up the acceptance spec; removed the acceptance model fixtures in favor of fresh definitions in each spec
2010-11-12 14:58:25 -06:00
Joe Ferris
ef29139e3e
Moved aliases out of the definition body into the definition arguments
2010-11-11 16:34:01 -06:00
Joe Ferris
5c88bb058b
Renamed Factory#factory_name to Factory#name; cleaned up Factory#human_name; bumped version
2010-10-02 00:07:54 -04:00
Joe Ferris
bf0b6a6c16
Added a new definition syntax using instance_eval
2010-09-07 18:36:40 -04:00
Comron Sattari
84e2c1cf8c
Allow sequences to iterate over non Integers
2010-08-12 19:42:18 -07:00
Joe Ferris
8b4a6a1c3a
Moved definition loading syntax out of the factory class; moved everything into a FactoryGirl module
2010-07-06 20:22:02 -04:00
Joe Ferris
2a39afe527
Changed internal methods to use the internal api
2010-07-06 20:22:02 -04:00
Joe Ferris
ac8875c818
Extracted yielded object for dsl into a proxy; moved default public api into its own file
2010-07-06 20:21:52 -04:00
Joe Ferris
f3366b69f2
Separated unit and acceptance tests to isolate Rails-related dependencies
2010-06-10 13:37:51 -04:00