Sha256: c091fccb17f5ed577d3c85a48cc17011275770a43e2c87dd2ea3ec21b8d582f6
Contents?: true
Size: 642 Bytes
Versions: 62
Compression:
Stored size: 642 Bytes
Contents
require 'test_helper' module Workarea module Storefront class SearchPerformanceTest < Workarea::PerformanceTest setup :setup_catalog def setup_catalog name_prefix = %w(foo bar foobar) Sidekiq::Callbacks.disable do @products = Array.new(Workarea.config.per_page) do |i| create_complex_product(name: "#{name_prefix[i % 3]} #{i}") end end BulkIndexProducts.perform_by_models(@products) end def test_search_with_complex_products get storefront.search_path(q: 'foo') assert(response.ok?) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems