From 923308b906c7247916580e854c59f1541165d701 Mon Sep 17 00:00:00 2001 From: Ginty Date: Thu, 19 Aug 2010 22:04:48 -0500 Subject: [PATCH] README linked to gist showing how to integrate with tests written for Machinist --- README.rdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index b527475..9b00119 100644 --- a/README.rdoc +++ b/README.rdoc @@ -36,7 +36,9 @@ Cranky steals its core syntax from Factory Girl... Factory.build(:user, :name => "Ian") # Override a default attribute value Factory.attributes_for(:user) # Return a set of valid attributes rather than the object -And has a nice debug option (rails only) to warn you when your factory is broken, recommend you do this for your first spec... +Or if you're coming from Machinist, you can make your Cranky factories drop into your existing tests by setting up make and make! methods as shown here.[http://gist.github.com/525653] + +Cranky has a nice debug option (rails only) to warn you when your factory is broken, recommend you do this for your first spec... describe User do it "should have a working factory" do