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

Merge test examples

Dombi Attilae4632493a41f
diff --git a/spec/seeders/basic_data/project_custom_field_section_seeder_spec.rb b/spec/seeders/basic_data/project_custom_field_section_seeder_spec.rb
index 1997b25bc5e..d4ff994cefd 100644
--- a/spec/seeders/basic_data/project_custom_field_section_seeder_spec.rb
+++ b/spec/seeders/basic_data/project_custom_field_section_seeder_spec.rb
@@ -54,15 +54,14 @@ RSpec.describe BasicData::ProjectCustomFieldSectionSeeder do
SEEDING_DATA_YAML
end
- it "creates the corresponding sections with the given attributes" do
+ it "creates the corresponding sections with the given attributes", :aggregate_failures do
expect(ProjectCustomFieldSection.count).to eq(2)
expect(ProjectCustomFieldSection.find_by(name: "Project Attributes"))
.to have_attributes(position: 1)
expect(ProjectCustomFieldSection.find_by(name: "Project Attributes Two"))
.to have_attributes(position: 2)
- end
- it "references the section in the seed data" do
+ # references the section in the seed data
created_status = ProjectCustomFieldSection.last
expect(seed_data.find_reference(:section_two)).to eq(created_status)
end