summaryrefslogtreecommitdiff
path: root/spec/factories/internal_ids.rb
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-06 20:09:01 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-16 13:35:25 +0100
commit754272e392c0da088200a1b56156600973f63267 (patch)
tree21fdb2f633deff884d39d89f7672f230f1d6c143 /spec/factories/internal_ids.rb
parenta0abb904782970de456dae5539ad5de2afef0e05 (diff)
downloadgitlab-ce-754272e392c0da088200a1b56156600973f63267.tar.gz
Atomic generation of internal ids for issues.
Diffstat (limited to 'spec/factories/internal_ids.rb')
-rw-r--r--spec/factories/internal_ids.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/internal_ids.rb b/spec/factories/internal_ids.rb
new file mode 100644
index 00000000000..b4c14d22a29
--- /dev/null
+++ b/spec/factories/internal_ids.rb
@@ -0,0 +1,6 @@
+FactoryBot.define do
+ factory :internal_id do
+ project
+ usage { InternalId.usages.keys.first }
+ end
+end