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

19 commits

Author SHA1 Message Date
Joe Ferris
6469e9b4d9 #8 - defining an attribute ending with = raises an error (thanks to the Boston.rb hackfest) 2008-07-29 16:49:22 -04:00
Joe Ferris
a5faf19392 #7 - class instances and names are now largely interchangeable 2008-07-29 16:20:44 -04:00
Joe Ferris
b4a5ab0eb8 #11 - added syntactic sugar for associations 2008-07-29 15:53:47 -04:00
Joe Ferris
ab0b57a93d #6 - attribute names can now be specified using strings or symbols 2008-07-29 14:35:17 -04:00
Joe Ferris
e582435d34 #6 - both strings and symbols can be used as factory names 2008-07-29 14:22:18 -04:00
thoughtbot
6c49c69cd8 Raise AttributeDefinitionError when defining an attribute with f.attr=value rather than f.attr value; ticket #8 2008-07-22 19:46:01 -04:00
Joe Ferris
d63ed8fa34 Renamed Factory#name to Factory#factory_name so you can have name attributes without using #add_attribute 2008-06-23 18:17:01 -04:00
Joe Ferris
7cafa4451b Corrected a mistake in the documentation for Factory#method_missing 2008-06-10 15:38:18 -04:00
Joe Ferris
fa36b1da4a Added support for sequences 2008-06-01 10:46:50 -07:00
Joe Ferris
05766cc8e9 Added support for dependent attributes 2008-05-31 17:12:33 -07:00
Joe Ferris
7b3936b611 Added the AttributeProxy class and an association method, and added functionality for using AttributeProxy from Factory. This allows lazy generation of associations using the appropriate method. 2008-05-31 15:16:59 -07:00
Joe Ferris
4baf467002 Cleaned up documentation and the README 2008-05-29 01:11:33 -04:00
Joe Ferris
7dcb2241c6 Renamed #attributes to #attributes_for 2008-05-28 22:22:48 -04:00
Joe Ferris
218ed9a055 Added the create, build, and attributes class methods on Factory 2008-05-28 22:09:30 -04:00
Joe Ferris
f6db21769d Defined method_missing on Factory so that attributes can be defined by calling the attribute name as a method 2008-05-28 21:14:57 -04:00
Joe Ferris
312bfa3528 Implemented build and create for Factory 2008-05-28 21:07:51 -04:00
Joe Ferris
d3a5d85485 Implemented add_attribute and attributes for Factory 2008-05-28 20:00:46 -04:00
Joe Ferris
b01006cf37 Created a basic Factory class and implemented Factory.define 2008-05-28 18:54:54 -04:00
Joe Ferris
6a553ca10d Created a project skeleton with the Factory class 2008-05-28 18:20:25 -04:00