summaryrefslogtreecommitdiff
path: root/spec/factories/work_items/hierarchy_restrictions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/work_items/hierarchy_restrictions.rb')
-rw-r--r--spec/factories/work_items/hierarchy_restrictions.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/work_items/hierarchy_restrictions.rb b/spec/factories/work_items/hierarchy_restrictions.rb
new file mode 100644
index 00000000000..09a10b633ba
--- /dev/null
+++ b/spec/factories/work_items/hierarchy_restrictions.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :hierarchy_restriction, class: 'WorkItems::HierarchyRestriction' do
+ parent_type { association :work_item_type, :default }
+ child_type { association :work_item_type, :default }
+ end
+end