class MessagesTest

Public Instance Methods

test_create_room() click to toggle source
# File test/test_messages.rb, line 37
def test_create_room
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.create_room('company', {})
end
test_get_room_by_application() click to toggle source
# File test/test_messages.rb, line 27
def test_get_room_by_application
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.get_room_by_application('company', '1234', {})
end
test_get_room_by_contract() click to toggle source
# File test/test_messages.rb, line 32
def test_get_room_by_contract
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.get_room_by_contract('company', '1234', {})
end
test_get_room_by_offer() click to toggle source
# File test/test_messages.rb, line 22
def test_get_room_by_offer
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.get_room_by_offer('company', '1234', {})
end
test_get_room_details() click to toggle source
# File test/test_messages.rb, line 17
def test_get_room_details
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.get_room_details('company', 'room-id', {})
end
test_get_rooms() click to toggle source
# File test/test_messages.rb, line 12
def test_get_rooms
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.get_rooms('company')
end
test_send_message_to_room() click to toggle source
# File test/test_messages.rb, line 42
def test_send_message_to_room
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.send_message_to_room('company', 'room-id', {})
end
test_update_room_metadata() click to toggle source
# File test/test_messages.rb, line 52
def test_update_room_metadata
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.update_room_metadata('company', 'room-id', {})
end
test_update_room_settings() click to toggle source
# File test/test_messages.rb, line 47
def test_update_room_settings
  api = Upwork::Api::Routers::Messages.new(get_client_mock)
  assert api.update_room_settings('company', 'room-id', 'username', {})
end