collect_test.rb 352 B

12345678910
  1. # frozen_string_literal: true
  2. require 'test_helper'
  3. class CollectTest < Test::Unit::TestCase
  4. test "#create should create a collect" do
  5. fake("collects", method: :post, status: 201, body: load_fixture('collect'))
  6. link = ShopifyAPI::Collect.create(product_id: 921728736, collection_id: 841564295)
  7. assert_equal(841564295, link.id)
  8. end
  9. end