Sha256: 01c1156589ecaf1a901a344f8f7eac97a65d832ab90eb076907d2ff47d44895f
Contents?: true
Size: 907 Bytes
Versions: 12
Compression:
Stored size: 907 Bytes
Contents
require 'test_helper' class CustomerTest < Test::Unit::TestCase test "search should get a customers collection" do 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 test "account_activation_url should create an account activation url" do fake "customers/207119551", :body => load_fixture('customers') fake "customers/207119551/account_activation_url", :method => :post, :body => load_fixture('customers_account_activation_url') customer = ShopifyAPI::Customer.find(207119551) activation_url = "http://apple.myshopify.com/account/activate/207119551/86688abf23572680740b1c062fa37111-1458248616" assert_equal activation_url, customer.account_activation_url end end
Version data entries
12 entries across 12 versions & 1 rubygems