diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 2802c7e70bd..6f7d5a3c14d 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -895,7 +895,7 @@ describe User, models: true do let(:project) { create(:project) } def add_user access - Member.add_user(project.project_members, user, access) + project.team << [user, access] end it_behaves_like :member |