-
-
Save jaredatron/669553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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