From e9cbd6d7edf17c6f4a70c3fea2d8393df7cd7bbd Mon Sep 17 00:00:00 2001 From: Laura Ghiorghisor Date: Wed, 27 Mar 2024 12:58:06 +0000 Subject: [PATCH 1/2] Fix tests affected by mongoid bump from 8.1.4 to 8.1.5 Co-authored-by: Alex Newton --- spec/models/travel_advice_edition_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/models/travel_advice_edition_spec.rb b/spec/models/travel_advice_edition_spec.rb index bba7c55a0..562ae771a 100644 --- a/spec/models/travel_advice_edition_spec.rb +++ b/spec/models/travel_advice_edition_spec.rb @@ -571,9 +571,11 @@ context "parts" do it "should merge part validation errors with parent document's errors" do edition = create(:travel_advice_edition) - edition.parts.build(_id: "54c10d4d759b743528000010", order: "1", title: "", slug: "overview") - edition.parts.build(_id: "54c10d4d759b743528000011", order: "2", title: "Prepare for your appointment", slug: "") - edition.parts.build(_id: "54c10d4d759b743528000012", order: "3", title: "Valid", slug: "valid") + edition.parts = [ + Part.new(_id: "54c10d4d759b743528000010", order: "1", title: "", slug: "overview"), + Part.new(_id: "54c10d4d759b743528000011", order: "2", title: "Prepare for your appointment", slug: ""), + Part.new(_id: "54c10d4d759b743528000012", order: "3", title: "Valid", slug: "valid"), + ] expect(edition).not_to be_valid From da4d73949e91bc407e7bfd9db148d8dbe2a4ca61 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:57:50 +0000 Subject: [PATCH 2/2] Bump mongoid from 8.1.4 to 8.1.5 Bumps [mongoid](https://github.com/mongodb/mongoid) from 8.1.4 to 8.1.5. - [Release notes](https://github.com/mongodb/mongoid/releases) - [Changelog](https://github.com/mongodb/mongoid/blob/master/CHANGELOG.md) - [Commits](https://github.com/mongodb/mongoid/compare/v8.1.4...v8.1.5) --- updated-dependencies: - dependency-name: mongoid dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5d9184a24..943e88b05 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -249,7 +249,7 @@ GEM minitest (5.22.3) mongo (2.19.3) bson (>= 4.14.1, < 5.0.0) - mongoid (8.1.4) + mongoid (8.1.5) activemodel (>= 5.1, < 7.2, != 7.0.0) concurrent-ruby (>= 1.0.5, < 2.0) mongo (>= 2.18.0, < 3.0.0)