Sha256: a3d00b99d2de7db85834f14f1a4565d3bdbec60e04f994e0e9abfd2b60040e88

Contents?: true

Size: 635 Bytes

Versions: 4

Compression:

Stored size: 635 Bytes

Contents

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

require 'helper'
require 'odesk/api/routers/hr/submissions'
require 'test/unit'
require 'mocha/test_unit'

class HrSubmissionsTest < Test::Unit::TestCase
  include TestHelper
  
  def test_request_approval
    api = Odesk::Api::Routers::Hr::Submissions.new(get_client_mock)
    assert api.request_approval({})
  end
  
  def test_approve
    api = Odesk::Api::Routers::Hr::Submissions.new(get_client_mock)
    assert api.approve('1234', {})
  end
  
  def test_reject
    api = Odesk::Api::Routers::Hr::Submissions.new(get_client_mock)
    assert api.reject('1234', {})
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
odesk-api-0.2.7 test/test_hr_submissions.rb
odesk-api-0.2.6 test/test_hr_submissions.rb
odesk-api-0.2.5 test/test_hr_submissions.rb
odesk-api-0.2.4 test/test_hr_submissions.rb