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 update form api
Klaus Zanderseb08d4b8960d
diff --git a/modules/costs/spec/requests/api/time_entries/update_form_resource_spec.rb b/modules/costs/spec/requests/api/time_entries/update_form_resource_spec.rbindex 6451e6030c7..7f7b9164931 100644--- a/modules/costs/spec/requests/api/time_entries/update_form_resource_spec.rb+++ b/modules/costs/spec/requests/api/time_entries/update_form_resource_spec.rb@@ -77,7 +77,7 @@ RSpec.describe API::V3::TimeEntries::UpdateFormAPI, content_type: :json dolet(:parameters) do{_links: {- workPackage: {+ entity: {href: api_v3_paths.work_package(work_package.id)},project: {@@ -116,7 +116,7 @@ RSpec.describe API::V3::TimeEntries::UpdateFormAPI, content_type: :json doexpect(body).to be_json_eql(api_v3_paths.work_package(work_package.id).to_json)- .at_path("_embedded/payload/_links/workPackage/href")+ .at_path("_embedded/payload/_links/entity/href")expect(body).to be_json_eql(api_v3_paths.time_entries_activity(active_activity.id).to_json)@@ -150,7 +150,7 @@ RSpec.describe API::V3::TimeEntries::UpdateFormAPI, content_type: :json doexpect(body).to be_json_eql(wp_path.to_json)- .at_path("_embedded/schema/workPackage/_links/allowedValues/href")+ .at_path("_embedded/schema/entity/_links/allowedValues/href")expect(body).to be_json_eql(api_v3_paths.time_entries_available_projects.to_json)@@ -168,7 +168,7 @@ RSpec.describe API::V3::TimeEntries::UpdateFormAPI, content_type: :json dolet(:parameters) do{_links: {- workPackage: {+ entity: {href: api_v3_paths.work_package(0)}}@@ -179,8 +179,8 @@ RSpec.describe API::V3::TimeEntries::UpdateFormAPI, content_type: :json doexpect(subject.body).to have_json_size(1).at_path("_embedded/validationErrors")end- it "has a validation error on workPackage" do- expect(subject.body).to have_json_path("_embedded/validationErrors/workPackage")+ it "has a validation error on entity" do+ expect(subject.body).to have_json_path("_embedded/validationErrors/entity")endit "has no commit link" do