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
Update spec and allow updating hidden fields via the api.
Dombi Attilaa71513f35987
diff --git a/spec/models/projects/customizable_spec.rb b/spec/models/projects/customizable_spec.rbindex 6dc4d64fe22..90e174b90a3 100644--- a/spec/models/projects/customizable_spec.rb+++ b/spec/models/projects/customizable_spec.rb@@ -463,8 +463,10 @@ RSpec.describe Project, "customizable" doit "does not activate hidden custom fields" do# project creation happens with an non-admin user as let(:project) called after setting the current user to an non-admin+ # Due to backward compatibility for the API, we have to activate the hidden_custom_field too,+ # but it won't receive any value, so its value is not changed.expect(project.project_custom_field_project_mappings.pluck(:custom_field_id))- .to contain_exactly(text_custom_field.id, bool_custom_field.id)+ .to contain_exactly(text_custom_field.id, bool_custom_field.id, hidden_custom_field.id)expect(project.custom_value_for(hidden_custom_field)).to be_nilend