Make explicit call for all event types for ProjectHook factory

This commit is contained in:
Kamil Trzcinski 2016-08-12 22:09:58 +02:00
parent 5822a333d4
commit cd4d8b91eb
1 changed files with 7 additions and 9 deletions

View File

@ -7,15 +7,13 @@ FactoryGirl.define do
end
trait :all_events_enabled do
%w[push_events
merge_requests_events
tag_push_events
issues_events
note_events
build_events
pipeline_events].each do |event|
send(event, true)
end
push_events true
merge_requests_events true
tag_push_events true
issues_events true
note_events true
build_events true
pipeline_events true
end
end
end