Skip to content

Commit

Permalink
cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMaguir committed May 20, 2024
1 parent 3fb7254 commit 50758f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/mongoid/contextual/mongo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3663,7 +3663,7 @@
before do
depeche_mode.update_attribute(:genres, ["electronic", "pop", "dance"])
new_order.update_attribute(:genres, ["electronic", "pop", "dance"])
context.update_all("$pull" => { genres: {'$in' => ["electronic", "pop"] }})
context.update_all("$pull" => { genres: { '$in' => ["electronic", "pop"] } })
end

it "updates the first matching document" do
Expand All @@ -3679,7 +3679,7 @@
context "when operation is $pop" do

before do
depeche_mode.update_attribute(:genres, ["pop", "electronic" ])
depeche_mode.update_attribute(:genres, ["pop", "electronic"])
end

it "removes first element in array" do
Expand All @@ -3696,7 +3696,7 @@
context "when operation is $pullAll" do

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

0 comments on commit 50758f8

Please sign in to comment.