Skip to content

Commit

Permalink
prepare multiple entries in the data to be pulled from the array for …
Browse files Browse the repository at this point in the history
…$pullAll tests
  • Loading branch information
JohnMaguir committed May 20, 2024
1 parent 50758f8 commit fa54f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mongoid/contextual/mongo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3696,8 +3696,8 @@
context "when operation is $pullAll" do

before do
depeche_mode.update_attribute(:genres, ["pop", "electronic", "dance"])
new_order.update_attribute(:genres, ["electronic", "pop", "dance"])
depeche_mode.update_attribute(:genres, ["pop", "electronic", "dance", "pop" ])
new_order.update_attribute(:genres, ["electronic", "pop", "electronic","dance"])
context.update_all("$pullAll" => { genres: ["pop", "electronic"] })
end

Expand Down

0 comments on commit fa54f25

Please sign in to comment.