diff --git a/test/test_model.rb b/test/test_model.rb index 1ed2d61..2b4d16b 100644 --- a/test/test_model.rb +++ b/test/test_model.rb @@ -474,7 +474,7 @@ def create_comments_and_destroy_post Hoardable.on(deleted_at) { comment.destroy! } assert_equal Comment.all.size, 0 - assert_equal CommentVersion.where(hoardable_id: comment.id).first._during.max, deleted_at + assert_equal CommentVersion.where(hoardable_id: comment.id).first._during.max.round, deleted_at.round end test "will error if the upper bound of the temporal range with Hoardable.on is less than the lower bound" do