smart_collection_test.rb 376 B

123456789
  1. require 'test_helper'
  2. class SmartCollectionTest < Test::Unit::TestCase
  3. test "Smart Collection creation" do
  4. fake "smart_collections", :method => :post, :status => 201, :body => load_fixture('smart_collection')
  5. smart_collection = ShopifyAPI::SmartCollection.create(:title => "Macbooks", :published => false)
  6. assert_equal 1063001432, smart_collection.id
  7. end
  8. end