diff options
author | Sean McGivern <sean@gitlab.com> | 2017-04-07 19:54:06 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 15:20:55 +0200 |
commit | f17f60405eb5ae9b0091abf566b332ff08267145 (patch) | |
tree | a96b56eeeb091d54808c804ca48182d96bd93229 /spec | |
parent | a67b6b38948df3b4028d343e87f87558b66fdbf6 (diff) | |
download | gitlab-ce-f17f60405eb5ae9b0091abf566b332ff08267145.tar.gz |
Use last_activity_on in cohorts
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/cohorts_service_spec.rb | 4 |
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 |