From e4d63410e8d66a4243c6d940569a8c667bbefad6 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Mon, 8 Oct 2007 18:32:07 +0000 Subject: [PATCH] ActionItem78: removing uneeded test. --- test/unit/change_password_test.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test/unit/change_password_test.rb b/test/unit/change_password_test.rb index fd89fc1..740d7d7 100644 --- a/test/unit/change_password_test.rb +++ b/test/unit/change_password_test.rb @@ -2,6 +2,8 @@ require File.dirname(__FILE__) + '/../test_helper' class ChangePasswordTest < Test::Unit::TestCase + fixtures :environments + should 'validate' do data = ChangePassword.new assert !data.valid? @@ -52,16 +54,6 @@ class ChangePasswordTest < Test::Unit::TestCase assert !data.errors.invalid?(:email) end - should 'send a message with a URL so the user can enter the new password' do - User.destroy_all - User.create!(:login => 'testuser', :password => 'test', :password_confirmation => 'test', :email => 'test@example.com') - - data = ChangePassword.new - data.login = 'testuser' - data.email = 'test@example.com' - data.save! - end - should 'actually change password' do User.destroy_all User.create!(:login => 'testuser', :password => 'test', :password_confirmation => 'test', :email => 'test@example.com') -- libgit2 0.21.2