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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#66412] skipped flaky locale tests
Eric Schubert8eb52dbd40dd
diff --git a/spec/contracts/custom_fields/hierarchy/insert_scored_item_contract_spec.rb b/spec/contracts/custom_fields/hierarchy/insert_scored_item_contract_spec.rbindex 20acaad2a95..6c0f5e26f07 100644--- a/spec/contracts/custom_fields/hierarchy/insert_scored_item_contract_spec.rb+++ b/spec/contracts/custom_fields/hierarchy/insert_scored_item_contract_spec.rb@@ -46,7 +46,9 @@ RSpec.describe CustomFields::Hierarchy::InsertScoredItemContract doendend- context "when inputs are empty" do+ context "when inputs are empty",+ skip: "dry validation custom locales are not loaded correctly when running this spec together " \+ "with others from this folder." dolet(:params) { { parent:, label: "", score: "" } }it "is invalid" do@@ -57,7 +59,9 @@ RSpec.describe CustomFields::Hierarchy::InsertScoredItemContract doendend- context "when inputs are missing" do+ context "when inputs are missing",+ skip: "dry validation custom locales are not loaded correctly when running this spec together " \+ "with others from this folder." dolet(:params) { { parent: } }it "is invalid" dodiff --git a/spec/migrations/adds_position_cache_to_hierarchy_items_spec.rb b/spec/migrations/adds_position_cache_to_hierarchy_items_spec.rbindex 05e0277e77d..138260a87a0 100644--- a/spec/migrations/adds_position_cache_to_hierarchy_items_spec.rb+++ b/spec/migrations/adds_position_cache_to_hierarchy_items_spec.rb@@ -34,15 +34,16 @@ require Rails.root.join("db/migrate/20250102161733_adds_position_cache_to_hierarRSpec.describe AddsPositionCacheToHierarchyItems, type: :model, with_ee: [:custom_field_hierarchies] dolet(:custom_field) { create(:hierarchy_wp_custom_field, hierarchy_root: nil) }let(:service) { CustomFields::Hierarchy::HierarchicalItemService.new }+ let(:contract_class) { CustomFields::Hierarchy::InsertListItemContract }it "backfills the position_cache value on already existing hierarchy items" doActiveRecord::Migration.suppress_messages { described_class.new.down }root = service.generate_root(custom_field).value!- anakin = service.insert_item(label: "luke", parent: root).value!- chewie = service.insert_item(label: "chewbacca", parent: root).value!- luke = service.insert_item(label: "luke", parent: anakin).value!- leia = service.insert_item(label: "leia", parent: anakin).value!+ anakin = service.insert_item(contract_class:, label: "luke", parent: root).value!+ chewie = service.insert_item(contract_class:, label: "chewbacca", parent: root).value!+ luke = service.insert_item(contract_class:, label: "luke", parent: anakin).value!+ leia = service.insert_item(contract_class:, label: "leia", parent: anakin).value!expect(root.self_and_descendants_preordered).to eq([root, anakin, luke, leia, chewie])