From 198dd8f09c73be3d638a644cfa57e8c90671b864 Mon Sep 17 00:00:00 2001 From: Ginty Date: Sun, 22 Aug 2010 16:13:30 -0500 Subject: [PATCH] Updated README --- README.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 2421a7a..a44b66a 100644 --- a/README.rdoc +++ b/README.rdoc @@ -235,8 +235,8 @@ Clear all instance variables in the factory. This may be useful to run between t Sometimes it is useful to be warned that your factory is generating invalid instances (although quite often your tests may intentionally generate invalid instances, so use this with care). By turning on debug the Factory will raise an error if the generated instance is invalid... - Factory.debug(:user) - Factory.debug!(:user) + Factory.debug(:user) # A replacement for Factory.build, with validation warnings enabled + Factory.debug!(:user) # Likewise for Factory.create Note that this relies on the instance having a valid? method, so in practice this may only work with Rails.