Skip to content

Commit

Permalink
fix capitalization on TCPSocket and TCPServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Bradbury committed Apr 14, 2010
1 parent ad9fa84 commit 1bbe63a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/socket_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize()
def serve(port, &action)
@closed = false
@action = action
@ropeSocket = TCPserver.open(port)
@ropeSocket = TCPServer.open(port)
@serviceThread = Thread.start {serviceTask}
@group.add(@serviceThread)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/socket_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def testSocketSend
serverSocket.write("hi")
end

clientSocket = TCPsocket.open("localhost", @port)
clientSocket = TCPSocket.open("localhost", @port)
answer = clientSocket.gets
clientSocket.close
assert_equal("hi", answer)
Expand Down Expand Up @@ -91,7 +91,7 @@ def testSessionCount
end

def connect(port)
s = TCPsocket.open("localhost", @port)
s = TCPSocket.open("localhost", @port)
sleep(0.1)
s.close
end
Expand Down

0 comments on commit 1bbe63a

Please sign in to comment.