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