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

Fix seeder specs

Dombi Attila915954b7102e
diff --git a/modules/bim/spec/seeders/root_seeder_bim_edition_spec.rb b/modules/bim/spec/seeders/root_seeder_bim_edition_spec.rb
index d07f6f31d62..0a393f05bf2 100644
--- a/modules/bim/spec/seeders/root_seeder_bim_edition_spec.rb
+++ b/modules/bim/spec/seeders/root_seeder_bim_edition_spec.rb
@@ -102,7 +102,7 @@ RSpec.describe RootSeeder,
)
end
- include_examples "it creates records", model: Color, expected_count: 149
+ include_examples "it creates records", model: Color, expected_count: 148
include_examples "it creates records", model: DocumentCategory, expected_count: 3
include_examples "it creates records", model: IssuePriority, expected_count: 4
include_examples "it creates records", model: Status, expected_count: 4
diff --git a/spec/seeders/root_seeder_standard_edition_spec.rb b/spec/seeders/root_seeder_standard_edition_spec.rb
index 3dc1be33f9d..efdf57f0bce 100644
--- a/spec/seeders/root_seeder_standard_edition_spec.rb
+++ b/spec/seeders/root_seeder_standard_edition_spec.rb
@@ -67,7 +67,7 @@ RSpec.describe RootSeeder,
expect(VersionSetting.count).to eq 4
expect(Boards::Grid.count).to eq 5
expect(Boards::Grid.count { |grid| grid.options.has_key?(:filters) }).to eq 1
- expect(Project::PhaseDefinition.count).to eq 7
+ expect(Project::PhaseDefinition.count).to eq 4
end
it "links work packages to their version" do
@@ -138,7 +138,7 @@ RSpec.describe RootSeeder,
)
end
- include_examples "it creates records", model: Color, expected_count: 149
+ include_examples "it creates records", model: Color, expected_count: 148
include_examples "it creates records", model: DocumentCategory, expected_count: 3
include_examples "it creates records", model: GlobalRole, expected_count: 2
include_examples "it creates records", model: WorkPackageRole, expected_count: 3
@@ -190,7 +190,7 @@ RSpec.describe RootSeeder,
expect(Version.count).to eq 4
expect(VersionSetting.count).to eq 4
expect(Boards::Grid.count).to eq 5
- expect(Project::PhaseDefinition.count).to eq 7
+ expect(Project::PhaseDefinition.count).to eq 4
end
end
end