Sha256: 1e36044af1887c40c9dc6a331f672097aff8c285ad61170f0ab678572f09d3ad
Contents?: true
Size: 665 Bytes
Versions: 34
Compression:
Stored size: 665 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_attributes!(active: true) assert(Storefront.new(model).active[:now]) model.update_attributes!(active: false) release = create_release Release.with_current(release.id) do model.update_attributes!(active: true) end model.reload results = Storefront.new(model).active refute(results[:now]) assert(results[release.id.to_s]) end end end end
Version data entries
34 entries across 34 versions & 1 rubygems