diff options
author | Valery Sizov <valery@gitlab.com> | 2017-04-19 18:17:46 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-04-20 13:28:04 +0300 |
commit | 36a8cc3eca62c28ff9001be9378f76b7d59a2f4d (patch) | |
tree | e572b7b46037171d8a7e154a43c04265d0e4c176 /spec/models/merge_request_spec.rb | |
parent | 59a330f4cde708986b9112883b4d4f92b76e5c08 (diff) | |
download | gitlab-ce-36a8cc3eca62c28ff9001be9378f76b7d59a2f4d.tar.gz |
Remove helpers assigned_issuables_count and cached_assigned_issuables_countuassign_on_member_removing
Diffstat (limited to 'spec/models/merge_request_spec.rb')
-rw-r--r-- | spec/models/merge_request_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index 90b3a2ba42d..415d3e7b200 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -820,15 +820,17 @@ describe MergeRequest, models: true do user1 = create(:user) user2 = create(:user) mr = create(:merge_request, assignee: user1) + mr.project.add_developer(user1) + mr.project.add_developer(user2) - expect(user1.assigned_open_merge_request_count).to eq(1) - expect(user2.assigned_open_merge_request_count).to eq(0) + expect(user1.assigned_open_merge_requests_count).to eq(1) + expect(user2.assigned_open_merge_requests_count).to eq(0) mr.assignee = user2 mr.save - expect(user1.assigned_open_merge_request_count).to eq(0) - expect(user2.assigned_open_merge_request_count).to eq(1) + expect(user1.assigned_open_merge_requests_count).to eq(0) + expect(user2.assigned_open_merge_requests_count).to eq(1) end end |