Commit 21317449be15b8624ad01b021de3cf20665f7373

Authored by AntonioTerceiro
1 parent b8f28950

ActionItem78: reusing "login" instead of accessing the model directly

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@650 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/integration/forgot_password_test.rb
... ... @@ -32,7 +32,7 @@ class ForgotPasswordTest < ActionController::IntegrationTest
32 32 assert_template 'new_password_ok'
33 33 assert_tag :tag => 'a', :attributes => { :href => "/account/login" }
34 34  
35   - assert User.find_by_login('forgotten').authenticated?('newpass')
  35 + login('forgotten', 'newpass')
36 36 end
37 37  
38 38 end
... ...