Class: Cinch::Test::MockIRC

Inherits:
IRC
  • Object
show all
Defined in:
lib/cinch/test.rb

Overview

Mock Class to handle faux IRC networks

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ MockIRC

Returns a new instance of MockIRC.



10
11
12
13
14
15
# File 'lib/cinch/test.rb', line 10

def initialize(*args)
  super
  # the #setup method adds the @network property among
  # other things
  setup
end

Instance Method Details

#connectObject

never try to actually connect to a network



19
20
21
# File 'lib/cinch/test.rb', line 19

def connect
  @bot.loggers.info('mock irc: not connecting')
end