Permalink
Browse files

updated to use instead of

  • Loading branch information...
1 parent facf524 commit c4d14850c65e7027db6d731e890c01c7b179a870 @DanielKehoe DanielKehoe committed Aug 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 features/step_definitions/user_steps.rb
@@ -6,7 +6,7 @@ def create_visitor
end
def find_user
- @user ||= User.first conditions: {:email => @visitor[:email]}
+ @user ||= User.where(:email => @visitor[:email]).first
end
def create_unconfirmed_user
@@ -23,7 +23,7 @@ def create_user
end
def delete_user
- @user ||= User.first conditions: {:email => @visitor[:email]}
+ @user ||= User.where(:email => @visitor[:email]).first
@user.destroy unless @user.nil?
end

0 comments on commit c4d1485

Please sign in to comment.