Project

cinch-test

0.01
No commit activity in last 3 years
No release in over 3 years
A collection of utility methods, mocks and methods for testing Cinch plugins
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2
 Project Readme

Cinch::Test

Gem Version Dependency Status Build Status Coverage Status Code Climate

Usage

  1. require 'cinch/test' and include the module Cinch::Test in your test scope
  2. Make a bot with make_bot(plugin, plugin_opts) (you can pass a block to further configure the bot)
  3. Make a message with make_message(bot, 'message text')
  4. Stub things out on the message as you like, then collect all the replies with get_replies(message)