Sha256: 9440b634cd34c17b0bd79f5862ed2b862950471b0b73db6848c3264570ac1c2a

Contents?: true

Size: 1.33 KB

Versions: 8

Compression:

Stored size: 1.33 KB

Contents

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

require 'helper'
require 'odesk/api/routers/activities/team'
require 'test/unit'
require 'mocha/test_unit'

class ActivitiesTeamTest < Test::Unit::TestCase
  include TestHelper
  
  def test_get_list
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.get_list('company', 'team')
  end
  
  def test_get_specific_list
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.get_specific_list('company', 'team', 'code')
  end
    
  def test_add_activity
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.add_activity('company', 'team', {})
  end
    
  def test_update_activities
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.update_activities('company', 'team', 'code', {})
  end
    
  def test_archive_activities
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.archive_activities('company', 'team', 'code')
  end
    
  def test_unarchive_activities
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.unarchive_activities('company', 'team', 'code')
  end

  def test_update_batch
    api = Odesk::Api::Routers::Activities::Team.new(get_client_mock)
    assert api.update_batch('company', 'data')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
odesk-api-0.2.7 test/test_activities_team.rb
odesk-api-0.2.6 test/test_activities_team.rb
odesk-api-0.2.5 test/test_activities_team.rb
odesk-api-0.2.4 test/test_activities_team.rb
odesk-api-0.2.3 test/test_activities_team.rb
odesk-api-0.2.2 test/test_activities_team.rb
odesk-api-0.2.1 test/test_activities_team.rb
odesk-api-0.1.6 test/test_activities_team.rb