collect_test.rb 322 B

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