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:
authorStan Hu <stanhu@gmail.com>2016-09-20 05:59:29 +0300
committerStan Hu <stanhu@gmail.com>2016-09-20 08:59:15 +0300
commitcf9ee8fda7dbb42f388f0044b22bd3ff2b30048c (patch)
treee2c77195215fb91c974633d6046921852aba7f2b /spec/factories/events.rb
parentb94de5fd555213ae28030c33c27440228f8efb65 (diff)
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/events.rb')
-rw-r--r--spec/factories/events.rb5
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