summaryrefslogtreecommitdiff
path: root/spec/features/dashboard/issuables_counter_spec.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2017-05-10 23:54:10 +0300
committerValery Sizov <valery@gitlab.com>2017-05-12 14:12:29 +0300
commite2a3a5095abd8c1fa57dd19e4ff693ae4021fde8 (patch)
tree435cd38964d20a0b1ad67b9dc02dcdbbe76d00c1 /spec/features/dashboard/issuables_counter_spec.rb
parent92bf7dfcb040e3e035fc87b0a70461f891284c98 (diff)
downloadgitlab-ce-e2a3a5095abd8c1fa57dd19e4ff693ae4021fde8.tar.gz
Move update_assignee_cache_counts to the service
Diffstat (limited to 'spec/features/dashboard/issuables_counter_spec.rb')
-rw-r--r--spec/features/dashboard/issuables_counter_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/dashboard/issuables_counter_spec.rb b/spec/features/dashboard/issuables_counter_spec.rb
index 6f7bf0eba6e..354267dbee7 100644
--- a/spec/features/dashboard/issuables_counter_spec.rb
+++ b/spec/features/dashboard/issuables_counter_spec.rb
@@ -19,7 +19,7 @@ describe 'Navigation bar counter', feature: true, caching: true do
issue.assignees = []
- user.update_cache_counts
+ user.invalidate_cache_counts
Timecop.travel(3.minutes.from_now) do
visit issues_path
@@ -35,6 +35,8 @@ describe 'Navigation bar counter', feature: true, caching: true do
merge_request.update(assignee: nil)
+ user.invalidate_cache_counts
+
Timecop.travel(3.minutes.from_now) do
visit merge_requests_path