diff --git a/test/functional/profile_editor_controller_test.rb b/test/functional/profile_editor_controller_test.rb index 9ac5aab..a4cd978 100644 --- a/test/functional/profile_editor_controller_test.rb +++ b/test/functional/profile_editor_controller_test.rb @@ -865,7 +865,7 @@ class ProfileEditorControllerTest < ActionController::TestCase should 'not be able to destroy enterprise if is a regular member' do enterprise = fast_create(Enterprise) - enterprise.add_member(fast_create(Person)) # first member is admin by default + enterprise.add_member(create_user.person) # first member is admin by default person = create_user('foo').person enterprise.add_member(person) -- libgit2 0.21.2