summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-08-01 08:58:49 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-08-01 08:58:49 +0000
commit6b2b3d7f49db024678775da3a3685bbdd9bbee65 (patch)
tree2108bf9c394c2e3197ba994ef40e1b02d799bf55 /spec/factories
parentbd659f70b18be07dac184ca249c7eee17c703e56 (diff)
downloadgitlab-ce-6b2b3d7f49db024678775da3a3685bbdd9bbee65.tar.gz
Resource event model
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/resource_label_events.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/resource_label_events.rb b/spec/factories/resource_label_events.rb
new file mode 100644
index 00000000000..a67ad78c098
--- /dev/null
+++ b/spec/factories/resource_label_events.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :resource_label_event do
+ user { issue.project.creator }
+ action :add
+ label
+ issue
+ end
+end