Joshua Clayton
3282eea658
Move class creation/handling to an anonymous evaluator
...
This allows for Attribute#to_proc to not require a proxy to be passed to
return a Proc. It also allows for removal of Attribute#add_to
2011-11-30 20:56:58 -05:00
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
Joshua Clayton
dc32fd69e8
Change syntax for ignoring attributes to use block syntax instead of
...
calling ignore on individual declarations.
Old syntax:
factory :user do
rockstar(true).ignore
four { 2 + 2 }.ignore
name { "John Doe#{" - Rockstar" if rockstar}" }
end
New syntax:
factory :user do
ignore do
rockstar true
four { 2 + 2 }
end
name { "John Doe#{" - Rockstar" if rockstar}" }
end
2011-10-09 16:46:57 -04:00
Joshua Clayton
c87429b829
Add transient variables
...
Closes #142
Closes #103
2011-08-20 18:36:37 -04:00
Joshua Clayton
7c9254a452
Clean up attribute and core factory specs
2011-08-19 17:21:14 -04:00
Joshua Clayton
554e6ab378
rr => mocha
2011-08-13 00:12:47 -04: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
f3366b69f2
Separated unit and acceptance tests to isolate Rails-related dependencies
2010-06-10 13:37:51 -04:00
Joe Ferris
683aa43fab
Converted tests to specs
2009-04-13 21:15:25 -04:00