Sha256: 22d88a70ee481dfcff971141a0c3c84fbb70f208faa77d071b00bfe81c68f177
Contents?: true
Size: 1.34 KB
Versions: 10
Compression:
Stored size: 1.34 KB
Contents
$:.unshift 'lib' $LOAD_PATH << File.dirname(__FILE__) require 'helper' require 'odesk/api/routers/mc' require 'test/unit' require 'mocha/test_unit' class McTest < Test::Unit::TestCase include TestHelper def test_get_trays api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.get_trays end def test_get_tray_by_type api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.get_tray_by_type('username', 'type') end def test_get_thread_details api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.get_thread_details('username', '12') end def test_get_thread_by_context api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.get_thread_by_context('username', '~key', '12') end def test_get_thread_by_context_last_posts api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.get_thread_by_context_last_posts('username', '~key', '12') end def test_start_new_thread api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.start_new_thread('username', {}) end def test_reply_to_thread api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.reply_to_thread('username', '12', {}) end def test_mark_thread api = Odesk::Api::Routers::Mc.new(get_client_mock) assert api.mark_thread('username', '12', {}) end end
Version data entries
10 entries across 10 versions & 1 rubygems