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
Fix specs
Dombi Attila2be753c8b15c
diff --git a/spec/requests/api/v3/projects/update_form_resource_spec.rb b/spec/requests/api/v3/projects/update_form_resource_spec.rbindex e1881e46c1b..e0bebb2609f 100644--- a/spec/requests/api/v3/projects/update_form_resource_spec.rb+++ b/spec/requests/api/v3/projects/update_form_resource_spec.rb@@ -303,7 +303,7 @@ RSpec.describe API::V3::Projects::UpdateFormAPI, content_type: :json do)end- it "does not set the custom field in the payload" do+ it "does not prefill the custom field in the payload" doexpect(subject.body).not_to have_json_path("_embedded/payload/customField#{text_custom_field.id}/raw")end@@ -321,10 +321,9 @@ RSpec.describe API::V3::Projects::UpdateFormAPI, content_type: :json doexpect(subject.body).to have_json_size(0).at_path("_embedded/validationErrors")end- it "sets the custom field in the payload" do+ it "does not prefill the custom field in the payload" doexpect(subject.body)- .to be_json_eql("CF text".to_json)- .at_path("_embedded/payload/customField#{text_custom_field.id}/raw")+ .not_to have_json_path("_embedded/payload/customField#{text_custom_field.id}/raw")endend@@ -342,10 +341,9 @@ RSpec.describe API::V3::Projects::UpdateFormAPI, content_type: :json doexpect(subject.body).to have_json_size(1).at_path("_embedded/validationErrors")end- it "sets the custom field in the payload" do+ it "does not prefill the custom field in the payload" doexpect(subject.body)- .to be_json_eql("new CF text".to_json)- .at_path("_embedded/payload/customField#{text_custom_field.id}/raw")+ .not_to have_json_path("_embedded/payload/customField#{text_custom_field.id}/raw")endit "has a validation error on name" do