test/mocks/connection_mock.rb in robut-0.3.0 vs test/mocks/connection_mock.rb in robut-0.4.0

- old
+ new

@@ -2,25 +2,9 @@ class Robut::ConnectionMock < Robut::Connection def initialize(config = nil) self.config = config || self.class.config - self.store = Robut::Storage::HashStore + self.store = Robut::Storage::HashStore + self.client = Jabber::Client.new '' end - - def replies - @replies ||= [] - end - - def reply(msg, to = nil) - replies << msg - end - - def handle_message(plugins, time, nick, message) - messages << [time, nick, message] - end - - def messages - @messages ||= [] - end - end