Commit 4bcc84854b950a86b535154c966731e9ec37cdda

Authored by Larissa Reis
1 parent 6c4f6400

Fixes user test after external person attributes change

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/user_test.rb
@@ -762,7 +762,7 @@ class UserTest < ActiveSupport::TestCase @@ -762,7 +762,7 @@ class UserTest < ActiveSupport::TestCase
762 should 'get person or external person' do 762 should 'get person or external person' do
763 user = create_user('new_user') 763 user = create_user('new_user')
764 assert_kind_of Person, user.person 764 assert_kind_of Person, user.person
765 - user.external_person_id = ExternalPerson.create!(identifier: 'new_user', name: 'New User').id 765 + user.external_person_id = ExternalPerson.create!(identifier: 'new_user', name: 'New User', email: 'newuser@usermail.com', source: 'federated.noosfero.com', created_at: Date.today).id
766 assert_kind_of ExternalPerson, user.person 766 assert_kind_of ExternalPerson, user.person
767 assert_kind_of Person, user.person_without_external 767 assert_kind_of Person, user.person_without_external
768 end 768 end