Sha256: 038f962fd1731f776a3ab92713770f58f380a49e926237fb405298a52ddc1afe
Contents?: true
Size: 628 Bytes
Versions: 62
Compression:
Stored size: 628 Bytes
Contents
require 'test_helper' module Workarea module Storefront class CategoriesPerformanceTest < Workarea::PerformanceTest setup :setup_category def setup_category Sidekiq::Callbacks.disable do @products = Array.new(Workarea.config.per_page) do create_complex_product end end BulkIndexProducts.perform_by_models(@products) @category = create_category(product_ids: @products.map(&:id)) end def test_categories_with_complex_products get storefront.category_path(@category) assert(response.ok?) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems