Sha256: 5467402aabe788c4307447c84dc5721c2f48812a78e994e4e1f774966e022cf2

Contents?: true

Size: 391 Bytes

Versions: 12

Compression:

Stored size: 391 Bytes

Contents

require 'robut/storage/hash_store'

class Robut::PresenceMock < Robut::Room

  def initialize(connection)
    self.connection = connection
  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

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
sclemmer-robut-0.6.3 test/mocks/presence_mock.rb
sclemmer-robut-0.6.2 test/mocks/presence_mock.rb
sclemmer-robut-0.6.1 test/mocks/presence_mock.rb
sclemmer-robut-0.6.0 test/mocks/presence_mock.rb
sclemmer-robut-0.5.4 test/mocks/presence_mock.rb
sclemmer-robut-0.5.3 test/mocks/presence_mock.rb
robut-giphy-0.1.0 test/mocks/presence_mock.rb
sclemmer-robut-0.5.2 test/mocks/presence_mock.rb
robut-0.5.2 test/mocks/presence_mock.rb
robut-0.5.1 test/mocks/presence_mock.rb
robut-0.5.0 test/mocks/presence_mock.rb
robut-0.4.0 test/mocks/presence_mock.rb