Sha256: b497aa8a0338d0269d0fd1dfea023c44efb72a270e9b4f9d70f1a422db2802b2

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true
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

9 entries across 9 versions & 2 rubygems

Version Path
shopify_api-9.5.2 test/smart_collection_test.rb
ruby_shopify_api-1.2.0 test/smart_collection_test.rb
ruby_shopify_api-1.1.0 test/smart_collection_test.rb
ruby_shopify_api-1.0.0 test/smart_collection_test.rb
shopify_api-9.5.1 test/smart_collection_test.rb
shopify_api-9.5 test/smart_collection_test.rb
shopify_api-9.4.1 test/smart_collection_test.rb
shopify_api-9.4.0 test/smart_collection_test.rb
shopify_api-9.3.0 test/smart_collection_test.rb