Commit e4d63410e8d66a4243c6d940569a8c667bbefad6

Authored by AntonioTerceiro
1 parent fcce6c0f

ActionItem78: removing uneeded test.



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@631 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 10 deletions   Show diff stats
test/unit/change_password_test.rb
@@ -2,6 +2,8 @@ require File.dirname(__FILE__) + '/../test_helper' @@ -2,6 +2,8 @@ require File.dirname(__FILE__) + '/../test_helper'
2 2
3 class ChangePasswordTest < Test::Unit::TestCase 3 class ChangePasswordTest < Test::Unit::TestCase
4 4
  5 + fixtures :environments
  6 +
5 should 'validate' do 7 should 'validate' do
6 data = ChangePassword.new 8 data = ChangePassword.new
7 assert !data.valid? 9 assert !data.valid?
@@ -52,16 +54,6 @@ class ChangePasswordTest &lt; Test::Unit::TestCase @@ -52,16 +54,6 @@ class ChangePasswordTest &lt; Test::Unit::TestCase
52 assert !data.errors.invalid?(:email) 54 assert !data.errors.invalid?(:email)
53 end 55 end
54 56
55 - should 'send a message with a URL so the user can enter the new password' do  
56 - User.destroy_all  
57 - User.create!(:login => 'testuser', :password => 'test', :password_confirmation => 'test', :email => 'test@example.com')  
58 -  
59 - data = ChangePassword.new  
60 - data.login = 'testuser'  
61 - data.email = 'test@example.com'  
62 - data.save!  
63 - end  
64 -  
65 should 'actually change password' do 57 should 'actually change password' do
66 User.destroy_all 58 User.destroy_all
67 User.create!(:login => 'testuser', :password => 'test', :password_confirmation => 'test', :email => 'test@example.com') 59 User.create!(:login => 'testuser', :password => 'test', :password_confirmation => 'test', :email => 'test@example.com')