Skip to content

Instantly share code, notes, and snippets.

@wincent
Created November 20, 2009 20:58
Show Gist options
  • Save wincent/239777 to your computer and use it in GitHub Desktop.
Save wincent/239777 to your computer and use it in GitHub Desktop.
From f0d6ada3424fb0d02dfcb9a474e751e30fe37662 Mon Sep 17 00:00:00 2001
From: Wincent Colaiuta <win@wincent.com>
Date: Fri, 20 Nov 2009 21:52:16 +0100
Subject: [PATCH] Fix typo in README
FixtureReplacement generates methods like "valid_user_attributes", not
"valid_user".
Signed-off-by: Wincent Colaiuta <win@wincent.com>
---
README.rdoc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/README.rdoc b/README.rdoc
index e723097..ba1b6e2 100644
--- a/README.rdoc
+++ b/README.rdoc
@@ -83,7 +83,7 @@ Based on the above definition FixtureReplacement makes the following methods ava
- <tt>random_string</tt>: generates a random string as shown above
- <tt>new_user</tt>: equivalent to <tt>User.new</tt> with the attributes for the user.
- <tt>create_user</tt>: equivalent to <tt>User.create!</tt> with the user's attributes.
-- <tt>valid_user</tt>: returns a hash of the user's attributes including associations, specified in db/example_data.rb.
+- <tt>valid_user_attributes</tt>: returns a hash of the user's attributes including associations, specified in db/example_data.rb.
=== Overriding attributes
--
1.6.5.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment