Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2010 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/669551 to your computer and use it in GitHub Desktop.
Save anonymous/669551 to your computer and use it in GitHub Desktop.
diff --git a/features/step_definitions/auth_steps.rb b/features/step_definitions/auth_steps.rb
index aac8d15..7f79dd2 100644
--- a/features/step_definitions/auth_steps.rb
+++ b/features/step_definitions/auth_steps.rb
@@ -3,5 +3,5 @@ Given /^I am not logged in$/ do
end
Given /^I have an account with email "([^"]*)"$/ do |email|
- User.find(:first, :conditions => {:email => email})
+ User.find_by_email(email)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment