Skip to content

Commit

Permalink
README linked to gist showing how to integrate with tests written for…
Browse files Browse the repository at this point in the history
… Machinist
  • Loading branch information
Ginty committed Aug 20, 2010
1 parent 9b1280b commit 923308b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 923308b

Please sign in to comment.