Sha256: a2dfa8c05ed59049d51b41b054371198c8f3ae566af2f4f825502b57598a5ded

Contents?: true

Size: 845 Bytes

Versions: 9

Compression:

Stored size: 845 Bytes

Contents

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

require 'helper'
require 'upwork/api/routers/metadata'
require 'test/unit'
require 'mocha/test_unit'

class MetadataTest < Test::Unit::TestCase
  include TestHelper
  
  def test_get_tests
    api = Upwork::Api::Routers::Metadata.new(get_client_mock)
    assert api.get_tests
  end
  
  def test_get_regions
    api = Upwork::Api::Routers::Metadata.new(get_client_mock)
    assert api.get_regions
  end
    
  def test_get_skills
    api = Upwork::Api::Routers::Metadata.new(get_client_mock)
    assert api.get_skills
  end
    
  def test_get_categories_v2
    api = Upwork::Api::Routers::Metadata.new(get_client_mock)
    assert api.get_categories_v2
  end
    
  def test_get_reasons
    api = Upwork::Api::Routers::Metadata.new(get_client_mock)
    assert api.get_reasons({})
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
upwork-api-1.3.2 test/test_metadata.rb
upwork-api-1.3.1 test/test_metadata.rb
ruby-upwork-oauth2-2.0.1 test/test_metadata.rb
ruby-upwork-oauth2-2.0.0 test/test_metadata.rb
upwork-api-1.3.0 test/test_metadata.rb
upwork-api-1.2.2 test/test_metadata.rb
upwork-api-1.2.1 test/test_metadata.rb
upwork-api-1.2.0 test/test_metadata.rb
upwork-api-1.1.0 test/test_metadata.rb