Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-04-07 21:54:06 +0300
committerRémy Coutable <remy@rymai.me>2017-04-14 16:20:55 +0300
commitf17f60405eb5ae9b0091abf566b332ff08267145 (patch)
treea96b56eeeb091d54808c804ca48182d96bd93229 /spec/services
parenta67b6b38948df3b4028d343e87f87558b66fdbf6 (diff)
Use last_activity_on in cohorts
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/cohorts_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/cohorts_service_spec.rb b/spec/services/cohorts_service_spec.rb
index 5dd89e3e341..1e99442fdcb 100644
--- a/spec/services/cohorts_service_spec.rb
+++ b/spec/services/cohorts_service_spec.rb
@@ -11,8 +11,8 @@ describe CohortsService do
6.times do |months_ago|
months_ago_time = (months_ago * 2).months.ago
- create(:user, created_at: months_ago_time, current_sign_in_at: Time.now)
- create(:user, created_at: months_ago_time, current_sign_in_at: months_ago_time)
+ create(:user, created_at: months_ago_time, last_activity_on: Time.now)
+ create(:user, created_at: months_ago_time, last_activity_on: months_ago_time)
end
create(:user) # this user is inactive and belongs to the current month