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
Add test for seeding with work package roles migration done
Christophe Bliard43256d14045b
diff --git a/spec/seeders/root_seeder_standard_edition_spec.rb b/spec/seeders/root_seeder_standard_edition_spec.rbindex b9aca93e7ac..79497efc40f 100644--- a/spec/seeders/root_seeder_standard_edition_spec.rb+++ b/spec/seeders/root_seeder_standard_edition_spec.rb@@ -160,6 +160,24 @@ RSpec.describe RootSeeder,endend+ describe 'demo data with work package role migration having been run' do+ shared_let(:root_seeder) { described_class.new }++ before_all do+ # call the migration which will add data for work package roles. This+ # needs to be done manually as running tests automatically calls the+ # `db:test:purge` rake task.+ require(Rails.root.join('db/migrate/20231128080650_add_work_package_roles'))+ AddWorkPackageRoles.new.up++ with_edition('standard') do+ root_seeder.seed_data!+ end+ end++ include_examples 'creates standard demo data'+ end+describe 'demo data mock-translated in another language' doshared_let(:root_seeder) { described_class.new }