From 17f31c138fe3c667990d1769c564720939eae28e Mon Sep 17 00:00:00 2001 From: Ginty Date: Sun, 22 Aug 2010 20:32:45 -0500 Subject: [PATCH] Corrected README, factories are declared by reopening Cranky::Factory --- README.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index a44b66a..ecade75 100644 --- a/README.rdoc +++ b/README.rdoc @@ -50,7 +50,7 @@ Cranky has a nice debug option (rails only) to warn you when your factory is bro Cranky allows you to build factories via std Ruby methods, like this... # factories/my_factories.rb - class Cranky::Factory # Your factory must extend Cranky::Factory + class Cranky::Factory # Your factory must reopen Cranky::Factory # Simple factory method to create a user instance, you would call this via Factory.build(:user) def user @@ -89,7 +89,7 @@ This is where Cranky really shines, if you can create Ruby methods you can prett The only rules are: -1. Your factory must extend the Cranky::Factory class +1. Your factory must reopen the Cranky::Factory class 2. Your factory method must return the object you wanted to create 3. You can access the overrides passed in via options[:key] (not really a rule!)