Sha256: c63f655ada564f82c61abd407b39b3effec2ba743cc3f1cd4ee1434804772293

Contents?: true

Size: 492 Bytes

Versions: 8

Compression:

Stored size: 492 Bytes

Contents

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

8 entries across 8 versions & 2 rubygems

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