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

Add a boolean custom field to dev seeded data

Christophe Bliardd14078dcd656
diff --git a/app/seeders/development_data/custom_fields_seeder.rb b/app/seeders/development_data/custom_fields_seeder.rb
index ace22cbe541..50e38a67b1e 100644
--- a/app/seeders/development_data/custom_fields_seeder.rb
+++ b/app/seeders/development_data/custom_fields_seeder.rb
@@ -37,7 +37,7 @@ module DevelopmentData
end
def all_cfs
- %w(string text date list multilist int intrange float user version)
+ %w(string text date list multilist int intrange float bool user version)
end
def create_types!(cfs)
diff --git a/spec/seeders/root_seeder_standard_edition_spec.rb b/spec/seeders/root_seeder_standard_edition_spec.rb
index 3eed9314b2c..946b0b719ba 100644
--- a/spec/seeders/root_seeder_standard_edition_spec.rb
+++ b/spec/seeders/root_seeder_standard_edition_spec.rb
@@ -220,6 +220,10 @@ RSpec.describe RootSeeder,
expect(Project.count).to eq 6
end
+ it 'creates 1 project with custom fields' do
+ expect(CustomField.count).to eq 12
+ end
+
include_examples 'no email deliveries'
end
end