Sha256: d4eba542ca85eab79ac03ab1d881584c3a98727684f7d659ae0d586d5d35a35f

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

class CustomCollectionTest < Test::Unit::TestCase
  test "#create should create a custom collection" do
    fake("custom_collections", method: :post, status: 201, body: load_fixture('custom_collection'))
    link = ShopifyAPI::CustomCollection.create(title: "Macbooks", image: { src: "http://example.com/rails_logo.gif" })
    assert_equal(1063001463, link.id)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

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