Sha256: 32f492953fc70d2456369a3152e81ccd66597a702cf6605c606585e4f2f0cdc1
Contents?: true
Size: 515 Bytes
Versions: 62
Compression:
Stored size: 515 Bytes
Contents
require 'test_helper' module Workarea module Search class AdminTest < TestCase def test_keywords_include_tags_when_available tag = 'foo' product = Search::Admin.for(create_product(tags: [tag])) order = Search::Admin.for(create_placed_order) assert_includes(product.keywords, tag) assert_includes(product.keywords, product.model.id) assert_includes(order.keywords, order.model.id) refute_includes(order.keywords, tag) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems