summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 368a4d41b..39826bc2d 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -112,7 +112,7 @@ class ActiveSupport::TestCase
end
def change_user_password(login, new_password)
- user = User.first(:conditions => {:login => login})
+ user = User.where(:login => login).first
user.password, user.password_confirmation = new_password, new_password
user.save!
end