Skip to content

Commit

Permalink
[MONGOID-5508] It passes tests with save, destroy, and touch codepath…
Browse files Browse the repository at this point in the history
…s too
  • Loading branch information
adviti-mishra committed Jun 10, 2024
1 parent e7faad5 commit e3c6844
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/mongoid/touchable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -754,14 +754,13 @@
end

before do
band
update_time
band.send(meth)
end

it "updates the child's timestamp" do
# expect(band.updated_at).to eq(update_time.utc)
expect(band.reload.updated_at).to eq(update_time.utc)
expect(band.updated_at).to eq(update_time)
expect(band.reload.updated_at).to eq(update_time)
end
end

Expand Down

0 comments on commit e3c6844

Please sign in to comment.