From 1f1c566b7e52169582934018f18ae7d2ffe6dc0b Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 20 Feb 2022 22:02:22 -0800 Subject: [PATCH] Fixed test for Mongoid 6 --- test/log_subscriber_test.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/test/log_subscriber_test.rb b/test/log_subscriber_test.rb index d3925fd..65b4b9b 100644 --- a/test/log_subscriber_test.rb +++ b/test/log_subscriber_test.rb @@ -44,6 +44,9 @@ class LogSubscriberTest < Minitest::Test end def test_reindex_relation + # where.not not supported + skip if mongoid? && Mongoid::VERSION.to_i < 7 + products = create_products output = capture_logs do Product.where.not(id: products.last.id).reindex -- libgit2 0.21.0