Sha256: fdd20983ceab79eecf72e35510aed31bfe227405ad2a14476fc98b2eb209051e

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

require 'test_helper'

module Workarea
  decorate Search::ProductEntriesTest, with: :browse_option do
    def test_browse_option_entries
      products = Array.new(2) { create_product }

      products.first.update_attributes!(
        browse_option: 'color',
        variants: [
          { sku: 'SKU1', details: { color: ['Red'] } },
          { sku: 'SKU2', details: { color: ['Blue'] } }
        ]
      )

      assert_equal(3, Search::ProductEntries.new(products).entries.size)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-browse_option-2.2.0 test/queries/workarea/search/product_entries_test.decorator
workarea-browse_option-2.1.9 test/queries/workarea/search/product_entries_test.decorator
workarea-browse_option-2.1.8 test/queries/workarea/search/product_entries_test.decorator
workarea-browse_option-2.1.7 test/queries/workarea/search/product_entries_test.decorator
workarea-browse_option-2.1.6 test/queries/workarea/search/product_entries_test.decorator