Sha256: acd979a497eb7d596e72e5a0935d46198b8e1535143c004ff303e122b27cf0a6

Contents?: true

Size: 459 Bytes

Versions: 3

Compression:

Stored size: 459 Bytes

Contents

require 'test_helper'

module Workarea
  class ProductQuickviewTest < TestCase
    def test_quickview
      Workarea.with_config do |config|
        config.product_templates = %i(generic package)
        config.product_quickview_templates = %i(generic)

        product = create_product

        product.template = 'generic'
        assert product.quickview?

        product.template = 'package'
        refute product.quickview?
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-product_quickview-2.0.4 test/models/workarea/product_quickview_test.rb
workarea-product_quickview-2.0.3 test/models/workarea/product_quickview_test.rb
workarea-product_quickview-2.0.2 test/models/workarea/product_quickview_test.rb