diff options
author | Stan Hu <stanhu@gmail.com> | 2016-09-19 19:59:29 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-09-19 22:59:15 -0700 |
commit | cf9ee8fda7dbb42f388f0044b22bd3ff2b30048c (patch) | |
tree | e2c77195215fb91c974633d6046921852aba7f2b /spec/factories | |
parent | b94de5fd555213ae28030c33c27440228f8efb65 (diff) | |
download | gitlab-ce-cf9ee8fda7dbb42f388f0044b22bd3ff2b30048c.tar.gz |
Fix broken spec due to last_activity_at updates being throttled
In https://gitlab.com/gitlab-org/gitlab-ce/builds/4218398, the build failed
because the last_activity_at column was only being updated once per hour. We
can fix this spec by stubbing out the throttling and adjusting the spec to
test the right event timestamp.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/events.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/factories/events.rb b/spec/factories/events.rb index 90788f30ac9..8820d527c61 100644 --- a/spec/factories/events.rb +++ b/spec/factories/events.rb @@ -1,10 +1,11 @@ FactoryGirl.define do factory :event do + project + author factory: :user + factory :closed_issue_event do - project action { Event::CLOSED } target factory: :closed_issue - author factory: :user end end end |