##// END OF EJS Templates
Rails4: replace deprecated Relation#first with finder options at AccountControllerOpenidTest...
Toshi MARUYAMA -
r12226:07880008098d
parent child
Show More
@@ -157,7 +157,7 class AccountControllerOpenidTest < ActionController::TestCase
157 assert_response 302
157 assert_response 302
158 end
158 end
159
159
160 user = User.first(:order => 'id DESC')
160 user = User.order('id DESC').first
161 assert_equal 'http://openid.example.com/good_blank_user', user.identity_url
161 assert_equal 'http://openid.example.com/good_blank_user', user.identity_url
162 assert user.hashed_password.blank?, "Hashed password was #{user.hashed_password}"
162 assert user.hashed_password.blank?, "Hashed password was #{user.hashed_password}"
163 end
163 end
General Comments 0
You need to be logged in to leave comments. Login now