Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[58105] Renamed context inside hierarchical_item_service_spec

Andreas Pfohl06599b2ce944
diff --git a/spec/services/custom_fields/hierarchy/hierarchical_item_service_spec.rb b/spec/services/custom_fields/hierarchy/hierarchical_item_service_spec.rb
index e3b7fd68175..b5199522c2c 100644
--- a/spec/services/custom_fields/hierarchy/hierarchical_item_service_spec.rb
+++ b/spec/services/custom_fields/hierarchy/hierarchical_item_service_spec.rb
@@ -78,14 +78,12 @@ RSpec.describe CustomFields::Hierarchy::HierarchicalItemService do
let(:short) { "Short Description" }
context "with valid parameters" do
- it "inserts an item successfully" do
+ it "inserts an item successfully without short" do
result = service.insert_item(parent:, label:)
expect(result).to be_success
end
- end
- context "with invalid short" do
- it "fails to insert an item" do
+ it "inserts an item successfully with short" do
result = service.insert_item(parent:, label:, short:)
expect(result).to be_success
end