Skip to content

Commit

Permalink
Merge pull request #1829 from alphagov/dependabot/bundler/mongoid-8.1.5
Browse files Browse the repository at this point in the history
Bump mongoid from 8.1.4 to 8.1.5
  • Loading branch information
lauraghiorghisor-tw authored Mar 27, 2024
2 parents 96a593a + da4d739 commit 7a551d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions spec/models/travel_advice_edition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a551d7

Please sign in to comment.