gitlab-org--gitlab-foss/spec/factories/events.rb
Stan Hu cf9ee8fda7 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.
2016-09-19 22:59:15 -07:00

11 lines
201 B
Ruby

FactoryGirl.define do
factory :event do
project
author factory: :user
factory :closed_issue_event do
action { Event::CLOSED }
target factory: :closed_issue
end
end
end