diff options
author | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-01-28 09:50:25 +0700 |
---|---|---|
committer | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-01-31 06:37:05 +0700 |
commit | 538d1bffec52ecdaae44eaf9fdbcb6102c1cbefd (patch) | |
tree | f994aa765dba6cd56bf97956d3150de8c631eae8 /spec/models/members | |
parent | d777e6f1da98be64b872a2bea2222f3e037a3d4d (diff) | |
download | gitlab-ce-538d1bffec52ecdaae44eaf9fdbcb6102c1cbefd.tar.gz |
resolve deprecation warnings
don’t pass AR object, use the ID to avoid depr warning
pass in the id instead of AR object to specs for `ProjectDestroyWorker`
Diffstat (limited to 'spec/models/members')
-rw-r--r-- | spec/models/members/project_member_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/members/project_member_spec.rb b/spec/models/members/project_member_spec.rb index 90d14c2c0b9..e4be0aba7a6 100644 --- a/spec/models/members/project_member_spec.rb +++ b/spec/models/members/project_member_spec.rb @@ -117,7 +117,7 @@ describe ProjectMember, models: true do users = create_list(:user, 2) described_class.add_users_to_projects( - [projects.first.id, projects.second], + [projects.first.id, projects.second.id], [users.first.id, users.second], described_class::MASTER) |