From 21317449be15b8624ad01b021de3cf20665f7373 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 10 Oct 2007 16:37:05 +0000 Subject: [PATCH] ActionItem78: reusing "login" instead of accessing the model directly --- test/integration/forgot_password_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/forgot_password_test.rb b/test/integration/forgot_password_test.rb index 99a9ca2..a288487 100644 --- a/test/integration/forgot_password_test.rb +++ b/test/integration/forgot_password_test.rb @@ -32,7 +32,7 @@ class ForgotPasswordTest < ActionController::IntegrationTest assert_template 'new_password_ok' assert_tag :tag => 'a', :attributes => { :href => "/account/login" } - assert User.find_by_login('forgotten').authenticated?('newpass') + login('forgotten', 'newpass') end end -- libgit2 0.21.2