diff --git a/test/functional/account_controller_openid_test.rb b/test/functional/account_controller_openid_test.rb index e6c72c1..b196d9d 100644 --- a/test/functional/account_controller_openid_test.rb +++ b/test/functional/account_controller_openid_test.rb @@ -157,7 +157,7 @@ class AccountControllerOpenidTest < ActionController::TestCase assert_response 302 end - user = User.first(:order => 'id DESC') + user = User.order('id DESC').first assert_equal 'http://openid.example.com/good_blank_user', user.identity_url assert user.hashed_password.blank?, "Hashed password was #{user.hashed_password}" end