Sha256: c37d59e704b9131d1933d7f95bf7f815cc3b6b4530d8fadc458304c9dd330784

Contents?: true

Size: 326 Bytes

Versions: 9

Compression:

Stored size: 326 Bytes

Contents

require 'test_helper'

module Workarea
  module Search
    class StorefrontTest < TestCase
      def test_active
        model = create_product(active: false)
        refute(Storefront.new(model).active[:now])

        model.update!(active: true)
        assert(Storefront.new(model).active[:now])
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
workarea-core-3.5.7 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.6 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.5 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.4 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.3 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.2 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.1 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.0 test/models/workarea/search/storefront_test.rb
workarea-core-3.5.0.beta.1 test/models/workarea/search/storefront_test.rb