Sha256: d61bf94dae3918d4ca658a496672f8e40c199cb2f8ae7aa9f219e50abad1474e
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
require "test_helper" module Workarea module Storefront class ProductDocumentIntegrationTest < Workarea::IntegrationTest setup :create_document_product def create_document_product product = create_product product.product_documents.build( display_name: "document display name", document: product_image_file_path ).save product.save @product = product end def test_document_display get storefront.product_path(@product) document = @product.product_documents.first assert_includes(response.body, document.display_name) assert_includes(response.body, document.url) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems