Sha256: 267a31b6c432aa679a0ed179fb6459343d0a3c107cf69f11a9518095a794517d

Contents?: true

Size: 666 Bytes

Versions: 4

Compression:

Stored size: 666 Bytes

Contents

require 'test_helper'

module Workarea
  module Listrak
    class DataApi::ProductsTest < TestCase
      def test_import
        VCR.use_cassette 'listrak/data_api/products_import-successful' do
          product = create_product

          product_forms = product.skus.map do |sku|
            create_inventory id: sku
            Listrak::Models::ProductForm.new(product, sku)
          end

          data_api.products.import product_forms
        end
      end

      private

        def data_api
          @data_api ||= Listrak::DataApi.new client_id: 'a',
            client_secret: 'ZMOhwRN2MhkP0xicWzcu1rtEY9sjDUq/reVovZOY41U'
        end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-listrak-5.0.4 test/services/workarea/listrak/data_api/products_test.rb
workarea-listrak-5.0.3 test/services/workarea/listrak/data_api/products_test.rb
workarea-listrak-5.0.2 test/services/workarea/listrak/data_api/products_test.rb
workarea-listrak-5.0.1 test/services/workarea/listrak/data_api/products_test.rb