Sha256: de323aa5579385aefe1db523f07f94ef2736c92932f4ef7004098df467477fc2

Contents?: true

Size: 352 Bytes

Versions: 8

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

class CollectTest < Test::Unit::TestCase
  test "#create should create a collect" do
    fake("collects", method: :post, status: 201, body: load_fixture('collect'))
    link = ShopifyAPI::Collect.create(product_id: 921728736, collection_id: 841564295)
    assert_equal(841564295, link.id)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruby_shopify_api-1.2.0 test/collect_test.rb
ruby_shopify_api-1.1.0 test/collect_test.rb
ruby_shopify_api-1.0.0 test/collect_test.rb
shopify_api-9.5.1 test/collect_test.rb
shopify_api-9.5 test/collect_test.rb
shopify_api-9.4.1 test/collect_test.rb
shopify_api-9.4.0 test/collect_test.rb
shopify_api-9.3.0 test/collect_test.rb