Sha256: 3f1a73e3fff346c57bcd5c9000085f15c95ccfc08989199df4bf4f6791cd54da

Contents?: true

Size: 450 Bytes

Versions: 62

Compression:

Stored size: 450 Bytes

Contents

require 'test_helper'

module Workarea
  class BulkIndexProductsTest < Workarea::TestCase

    def test_peform
      Workarea::Search::Storefront.reset_indexes!

      Sidekiq::Callbacks.disable(IndexProduct) do
        products = Array.new(2) { create_product }

        assert_equal(0, Search::Storefront.count)
        BulkIndexProducts.new.perform(products.map(&:id))
        assert_equal(2, Search::Storefront.count)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.26 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.45 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.25 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.23 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.44 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.22 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.43 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.21 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.42 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.20 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.41 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.19 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.40 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.18 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.39 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.17 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.38 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.5.16 test/workers/workarea/bulk_index_products_test.rb
workarea-core-3.4.37 test/workers/workarea/bulk_index_products_test.rb