Commit de79cb022e6e0cdc7af22f78b74ec44ba2b4ca5a

Authored by AntonioTerceiro
1 parent 3c0d4c5c

ActionItem392: fixing test


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2035 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/functional/account_controller_test.rb
@@ -208,7 +208,8 @@ class AccountControllerTest < Test::Unit::TestCase @@ -208,7 +208,8 @@ class AccountControllerTest < Test::Unit::TestCase
208 change = ChangePassword.new 208 change = ChangePassword.new
209 ChangePassword.expects(:find_by_code).with('osidufgiashfkjsadfhkj99999').returns(change) 209 ChangePassword.expects(:find_by_code).with('osidufgiashfkjsadfhkj99999').returns(change)
210 person = mock 210 person = mock
211 - person.stubs(:name).returns('joe') 211 + person.stubs(:identifier).returns('joe')
  212 + person.stubs(:name).returns('Joe')
212 change.stubs(:requestor).returns(person) 213 change.stubs(:requestor).returns(person)
213 214
214 get :new_password, :code => 'osidufgiashfkjsadfhkj99999' 215 get :new_password, :code => 'osidufgiashfkjsadfhkj99999'