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

3 commits

Author SHA1 Message Date
Joshua Clayton
fba6f332fd Attributes have a to_proc method and are lazily evaluated on an
anonymous class
2011-11-25 21:59:43 -05:00
Joshua Clayton
3ed2f6274a Remove associate method from all the FactoryGirl::Proxy subclasses 2011-11-18 18:39:21 -05: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
Renamed from spec/factory_girl/attribute/implicit_spec.rb (Browse further)