Sha256: d3527bde749c1c54a392f83955f1967e75730389f832911d5c34fae8c1fa0565

Contents?: true

Size: 346 Bytes

Versions: 19

Compression:

Stored size: 346 Bytes

Contents

require 'test_helper'

class CustomerTest < Test::Unit::TestCase
  def test_search
    fake "customers/search.json?query=Bob+country%3AUnited+States", extension: false, body: load_fixture('customers_search')

    results = ShopifyAPI::Customer.search(query: 'Bob country:United States')
    assert_equal 'Bob', results.first.first_name
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shopify_api-4.2.0 test/customer_test.rb
shopify_api-4.1.1 test/customer_test.rb
shopify_api-4.1.0 test/customer_test.rb
shopify_api-4.0.7 test/customer_test.rb
shopify_api-4.0.6 test/customer_test.rb
shopify_api-4.0.5 test/customer_test.rb
shopify_api-4.0.4 test/customer_test.rb
shopify_api-4.0.3 test/customer_test.rb
shopify_api-4.0.2 test/customer_test.rb
shopify_api-4.0.1 test/customer_test.rb
shopify_api-4.0.0 test/customer_test.rb
shopify_api-3.2.7 test/customer_test.rb
shopify_api-3.2.6 test/customer_test.rb
shopify_api-3.2.5 test/customer_test.rb
shopify_api-3.2.4 test/customer_test.rb
shopify_api-3.2.3 test/customer_test.rb
shopify_api-3.2.2 test/customer_test.rb
shopify_api-3.2.1 test/customer_test.rb
shopify_api-3.2.0 test/customer_test.rb