summaryrefslogtreecommitdiff
path: root/spec/models/work_items/parent_link_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/work_items/parent_link_spec.rb')
-rw-r--r--spec/models/work_items/parent_link_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/models/work_items/parent_link_spec.rb b/spec/models/work_items/parent_link_spec.rb
index 82e79e8fbdf..f1aa81f46d2 100644
--- a/spec/models/work_items/parent_link_spec.rb
+++ b/spec/models/work_items/parent_link_spec.rb
@@ -218,4 +218,16 @@ RSpec.describe WorkItems::ParentLink, feature_category: :portfolio_management do
end
end
end
+
+ context 'with relative positioning' do
+ let_it_be(:group) { create(:group) }
+ let_it_be(:project) { create(:project, group: group) }
+ let_it_be(:work_item_parent) { create(:work_item, project: project) }
+
+ it_behaves_like "a class that supports relative positioning" do
+ let(:factory) { :parent_link }
+ let(:default_params) { { work_item_parent: work_item_parent } }
+ let(:items_with_nil_position_sample_quantity) { 90 }
+ end
+ end
end