Sha256: 2750a34670ce10b75471133dde86a0a56528f789b53b2a0388f92289bf053956

Contents?: true

Size: 456 Bytes

Versions: 26

Compression:

Stored size: 456 Bytes

Contents

require 'test_helper'

class SmartCollectionTest < Test::Unit::TestCase
  test "Smart Collection creation" do
    fake "smart_collections", :method => :post, :status => 201, :body => load_fixture('smart_collection')
    rules = { :column => "title", :relation => "starts_with", :condition => "mac" }
    smart_collection = ShopifyAPI::SmartCollection.create(:title => "Macbooks", :rules => rules)
    assert_equal 1063001432, smart_collection.id
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
shopify_api-9.2.0 test/smart_collection_test.rb
shopify_api-5.0.0 test/smart_collection_test.rb
shopify_api-4.13.0 test/smart_collection_test.rb
shopify_api-4.12.0 test/smart_collection_test.rb
shopify_api-4.11.0 test/smart_collection_test.rb
shopify_api-4.10.0 test/smart_collection_test.rb
shopify_api-4.9.1 test/smart_collection_test.rb
shopify_api-4.9.0 test/smart_collection_test.rb
shopify_api-4.8.0 test/smart_collection_test.rb
shopify_api-4.7.1 test/smart_collection_test.rb
shopify_api-4.7.0 test/smart_collection_test.rb
shopify_api-4.6.0 test/smart_collection_test.rb
shopify_api-4.5.0 test/smart_collection_test.rb
shopify_api-4.4.0 test/smart_collection_test.rb
shopify_api-4.3.9 test/smart_collection_test.rb
shopify_api-4.3.8 test/smart_collection_test.rb
shopify_api-4.3.7 test/smart_collection_test.rb
shopify_api-4.3.6 test/smart_collection_test.rb
shopify_api-4.3.5 test/smart_collection_test.rb
shopify_api-4.3.4 test/smart_collection_test.rb