Commit Graph

27 Commits

Author SHA1 Message Date
Joe Ferris 98e6c51866 #12 - added attribute aliases 2008-07-30 15:47:12 -04:00
Joe Ferris 13d988cd98 An error is now raised if you try to define the same attribute twice 2008-07-30 14:04:43 -04:00
Joe Ferris 38bc8965db Moved attribute validation into the Attribute class 2008-07-30 13:59:58 -04:00
Joe Ferris 03fa0d1180 Refactored attributes into their own class 2008-07-30 13:46:06 -04:00
Joe Ferris 027f183a56 #10 - fixed the active support dependency for Rails 2.1 apps 2008-07-30 09:58:57 -04:00
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 6ee6c0282b Fixed the attributes_for build strategy to not build associations 2008-05-31 22:54:19 -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 6fb322f169 Added activesupport as a dependency 2008-05-30 17:10:55 -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 4985bea035 Implemented the top-level Factory method 2008-05-28 22:20:10 -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