Sha256: bf26d55a298d6558fb56ad5752065d93023a60423c925230af92601830167cad

Contents?: true

Size: 701 Bytes

Versions: 14

Compression:

Stored size: 701 Bytes

Contents

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

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

class SnapshotTest < Test::Unit::TestCase
  include TestHelper
  
  def test_get_by_contract
    api = Upwork::Api::Routers::Snapshot.new(get_client_mock)
    assert api.get_by_contract('contract', '20140101')
  end
  
  def test_update_by_contract
    api = Upwork::Api::Routers::Snapshot.new(get_client_mock)
    assert api.update_by_contract('contract', '20140101', {})
  end
    
  def test_delete_by_contract
    api = Upwork::Api::Routers::Snapshot.new(get_client_mock)
    assert api.delete_by_contract('contract', '20140101')
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ruby-upwork-oauth2-2.2.0 test/test_snapshot.rb
ruby-upwork-oauth2-2.1.4 test/test_snapshot.rb
ruby-upwork-oauth2-2.1.3 test/test_snapshot.rb
upwork-api-1.3.5 test/test_snapshot.rb
ruby-upwork-oauth2-2.1.2 test/test_snapshot.rb
upwork-api-1.3.4 test/test_snapshot.rb
ruby-upwork-oauth2-2.1.1 test/test_snapshot.rb
ruby-upwork-oauth2-2.1.0 test/test_snapshot.rb
upwork-api-1.3.3 test/test_snapshot.rb
upwork-api-1.3.2 test/test_snapshot.rb
upwork-api-1.3.1 test/test_snapshot.rb
ruby-upwork-oauth2-2.0.1 test/test_snapshot.rb
ruby-upwork-oauth2-2.0.0 test/test_snapshot.rb
upwork-api-1.3.0 test/test_snapshot.rb