custom_collection_test.rb 424 B

12345678910
  1. # frozen_string_literal: true
  2. require 'test_helper'
  3. class CustomCollectionTest < Test::Unit::TestCase
  4. test "#create should create a custom collection" do
  5. fake("custom_collections", method: :post, status: 201, body: load_fixture('custom_collection'))
  6. link = ShopifyAPI::CustomCollection.create(title: "Macbooks", image: { src: "http://example.com/rails_logo.gif" })
  7. assert_equal(1063001463, link.id)
  8. end
  9. end