Commit 70359d291f92503c4ba95d1de85ecc4cd3990029
1 parent
656e245a
Exists in
master
and in
29 other branches
ProfileEditorController: fix test that sends email
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/functional/profile_editor_controller_test.rb
@@ -865,7 +865,7 @@ class ProfileEditorControllerTest < ActionController::TestCase | @@ -865,7 +865,7 @@ class ProfileEditorControllerTest < ActionController::TestCase | ||
865 | 865 | ||
866 | should 'not be able to destroy enterprise if is a regular member' do | 866 | should 'not be able to destroy enterprise if is a regular member' do |
867 | enterprise = fast_create(Enterprise) | 867 | enterprise = fast_create(Enterprise) |
868 | - enterprise.add_member(fast_create(Person)) # first member is admin by default | 868 | + enterprise.add_member(create_user.person) # first member is admin by default |
869 | 869 | ||
870 | person = create_user('foo').person | 870 | person = create_user('foo').person |
871 | enterprise.add_member(person) | 871 | enterprise.add_member(person) |