Sha256: 88fd3de7403b424f7cf9aa93e8357588a07b31b7610a877d024b680c71a1bc63
Contents?: true
Size: 888 Bytes
Versions: 62
Compression:
Stored size: 888 Bytes
Contents
require 'test_helper' module Workarea module Admin class CatalogProductCopiesIntegrationTest < Workarea::IntegrationTest include Admin::IntegrationTest def test_create product = create_product( id: 'foo123', variants: [{ sku: 'FOO1', regular: 5.to_m }] ) post admin.catalog_product_copies_path, params: { source_product_id: product.id, product: { active: false, id: 'bar345' } } new_product = Catalog::Product.find('bar345') assert_redirected_to( admin.edit_create_catalog_product_path( new_product, continue: true ) ) assert_equal("#{product.slug}-1", new_product.slug) assert_equal('FOO1', new_product.variants.first.sku) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems