Sha256: e57331f74b06bda5bb3cf123766272022e87d4d0d4e67811b999afe305f1babc

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 Bytes

Contents

require 'integration_helper'

module GameMachine

  describe "basic" do 
    let(:client) {Clients::UdtClient.new(:seed01)}

    describe "Sending and receiving messages" do
      it "works" do
        message = Helpers::GameMessage.new('player')
        message.echo_test('hi')
        client.connect
        client.send_message(message.to_byte_array)
        result = client.receive
        logout = Helpers::GameMessage.new('player')
        logout.player_logout
        client.send_message(logout.to_byte_array)
        client.disconnect
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 integration_tests/udt_client_spec.rb
game_machine-1.0.2 integration_tests/udt_client_spec.rb
game_machine-0.0.11 integration_tests/udt_client_spec.rb
game_machine-0.0.10 integration_tests/udt_client_spec.rb
game_machine-0.0.9 integration_tests/udt_client_spec.rb
game_machine-0.0.8 integration_tests/udt_client_spec.rb