Sha256: 46ca975aae9b0a7a169677e084aefee56e72ef39beeffbc244593cef9f3a16ee
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require 'test_helper' module Workarea decorate Search::ProductEntriesTest, with: :package_products do def test_package_product_entries products = Array.new(2) { create_product } products.first.update!(product_ids: ['ABC', '123']) entries = Search::ProductEntries.new(products).entries assert_equal(2, entries.size) assert_equal(Search::Storefront::PackageProduct, entries.first.class) assert_equal(Search::Storefront::Product, entries.last.class) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-package_products-3.4.1 | test/queries/workarea/search/product_entries_test.decorator |
workarea-package_products-3.4.0 | test/queries/workarea/search/product_entries_test.decorator |