custom_collection_test.rb 410 B

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