Permalink
Browse files

Merge branch 'fix-pong'

  • Loading branch information...
2 parents ddd4c4a + ea11a63 commit 800724e710b0573251692232594363913dfd28c2 @raws raws committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/hector/commands/ping.rb
  2. +1 −1 test/integration/connection_test.rb
@@ -2,7 +2,7 @@ module Hector
module Commands
module Ping
def on_ping
- respond_with(:pong, :source => Hector.server_name, :text => request.text)
+ respond_with(:pong, Hector.server_name, :source => Hector.server_name, :text => request.text)
end
end
end
@@ -132,7 +132,7 @@ class ConnectionTest < IntegrationTest
test :"sending the ping command should respond with a pong" do
authenticated_connection.tap do |c|
c.receive_line "PING 12345"
- assert_sent_to c, ":hector.irc PONG :12345"
+ assert_sent_to c, ":hector.irc PONG hector.irc :12345"
end
end

0 comments on commit 800724e

Please sign in to comment.