Sha256: 4ad2a62cfdfb313887e834e067698885824aaffd41f9a00345863b1987d24176

Contents?: true

Size: 472 Bytes

Versions: 45

Compression:

Stored size: 472 Bytes

Contents

require 'test_helper'

class UserTest < Test::Unit::TestCase
  test 'get should get a user' do
    fake 'users/799407056', method: :get, status: 200, body: load_fixture('user')
    
    user = ShopifyAPI::User.find(799407056)
    assert_equal 799407056, user.id
  end
  
  test 'get should get all users' do
    fake 'users', method: :get, status: 200, body: load_fixture('users')
    
    users = ShopifyAPI::User.all
    assert_equal 799407056, users.first.id
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
shopify_api-9.2.0 test/user_test.rb
shopify_api-9.1.0 test/user_test.rb
shopify_api-9.0.4 test/user_test.rb
shopify_api-9.0.3 test/user_test.rb
shopify_api-9.0.2 test/user_test.rb
shopify_api-9.0.1 test/user_test.rb
shopify_api-9.0.0 test/user_test.rb
shopify_api-8.1.0 test/user_test.rb
shopify_api-8.0.0 test/user_test.rb
shopify_api-7.1.0 test/user_test.rb
shopify_api-7.0.2 test/user_test.rb
shopify_api-7.0.1 test/user_test.rb
shopify_api-7.0.0 test/user_test.rb
shopify_api-6.0.0 test/user_test.rb
shopify_api-5.2.4 test/user_test.rb
shopify_api-5.2.3 test/user_test.rb
shopify_api-5.2.2 test/user_test.rb
shopify_api-5.2.1 test/user_test.rb
shopify_api-5.2.0 test/user_test.rb
shopify_api-5.1.0 test/user_test.rb