Sha256: 7b4665553772d1739f9fb51aaccb9a98d2f59d2a69b5ac0e3aa277dc1792df8d

Contents?: true

Size: 800 Bytes

Versions: 20

Compression:

Stored size: 800 Bytes

Contents

$:.unshift 'lib'
$LOAD_PATH << File.dirname(__FILE__)

require 'helper'
require 'upwork/api/routers/organization/companies'
require 'test/unit'
require 'mocha/test_unit'

class OrganizationCompaniesTest < Test::Unit::TestCase
  include TestHelper
  
  def test_get_list
    api = Upwork::Api::Routers::Organization::Companies.new(get_client_mock)
    assert api.get_list
  end
  
  def test_get_specific
    api = Upwork::Api::Routers::Organization::Companies.new(get_client_mock)
    assert api.get_specific('12')
  end
  
  def test_get_teams
    api = Upwork::Api::Routers::Organization::Companies.new(get_client_mock)
    assert api.get_teams('12')
  end
  
  def test_get_users
    api = Upwork::Api::Routers::Organization::Companies.new(get_client_mock)
    assert api.get_users('12')
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
ruby-upwork-oauth2-2.2.0 test/test_organization_companies.rb
ruby-upwork-oauth2-2.1.4 test/test_organization_companies.rb
ruby-upwork-oauth2-2.1.3 test/test_organization_companies.rb
upwork-api-1.3.5 test/test_organization_companies.rb
ruby-upwork-oauth2-2.1.2 test/test_organization_companies.rb
upwork-api-1.3.4 test/test_organization_companies.rb
ruby-upwork-oauth2-2.1.1 test/test_organization_companies.rb
ruby-upwork-oauth2-2.1.0 test/test_organization_companies.rb
upwork-api-1.3.3 test/test_organization_companies.rb
upwork-api-1.3.2 test/test_organization_companies.rb
upwork-api-1.3.1 test/test_organization_companies.rb
ruby-upwork-oauth2-2.0.1 test/test_organization_companies.rb
ruby-upwork-oauth2-2.0.0 test/test_organization_companies.rb
upwork-api-1.3.0 test/test_organization_companies.rb
upwork-api-1.2.2 test/test_organization_companies.rb
upwork-api-1.2.1 test/test_organization_companies.rb
upwork-api-1.2.0 test/test_organization_companies.rb
upwork-api-1.1.0 test/test_organization_companies.rb
upwork-api-1.0.1 test/test_organization_companies.rb
upwork-api-1.0.0 test/test_organization_companies.rb