Sha256: 25267c7169f2ceef96db8f727edd5566cce20fcef28b8b8a08b40bd3cc6b3576
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
$:.unshift 'lib' $LOAD_PATH << File.dirname(__FILE__) require 'helper' require 'odesk/api/routers/snapshot' require 'test/unit' require 'mocha/test_unit' class SnapshotTest < Test::Unit::TestCase include TestHelper def test_get api = Odesk::Api::Routers::Snapshot.new(get_client_mock) assert api.get('company', 'username', '20140101') end def test_update api = Odesk::Api::Routers::Snapshot.new(get_client_mock) assert api.update('company', 'username', '20140101', {}) end def test_delete api = Odesk::Api::Routers::Snapshot.new(get_client_mock) assert api.delete('company', 'username', '20140101') end def test_get_by_contract api = Odesk::Api::Routers::Snapshot.new(get_client_mock) assert api.get_by_contract('contract', '20140101') end def test_update_by_contract api = Odesk::Api::Routers::Snapshot.new(get_client_mock) assert api.update_by_contract('contract', '20140101', {}) end def test_delete_by_contract api = Odesk::Api::Routers::Snapshot.new(get_client_mock) assert api.delete_by_contract('contract', '20140101') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
odesk-api-0.2.7 | test/test_snapshot.rb |