Sha256: 5964aec59bac1e09973f5881c1f3e55e1d3e3fb236130ef038711685d9292065
Contents?: true
Size: 461 Bytes
Versions: 62
Compression:
Stored size: 461 Bytes
Contents
require 'test_helper' module Workarea class Storefront::ProductViewModel::CacheKeyTest < TestCase def test_omit_nil_options product = create_product( variants: [ { sku: 'SKU', details: { 'color' => %w(red) } } ] ) options = { 'color' => 'red', nil => :foo } key = Storefront::ProductViewModel::CacheKey.new(product, options) assert_includes(key.to_s, 'red') refute_includes(key.to_s, 'foo') end end end
Version data entries
62 entries across 62 versions & 1 rubygems