Commit 1f1c566b7e52169582934018f18ae7d2ffe6dc0b

Authored by Andrew Kane
1 parent 0cc05a32

Fixed test for Mongoid 6

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
test/log_subscriber_test.rb
... ... @@ -44,6 +44,9 @@ class LogSubscriberTest < Minitest::Test
44 44 end
45 45  
46 46 def test_reindex_relation
  47 + # where.not not supported
  48 + skip if mongoid? && Mongoid::VERSION.to_i < 7
  49 +
47 50 products = create_products
48 51 output = capture_logs do
49 52 Product.where.not(id: products.last.id).reindex
... ...