Giter Club home page Giter Club logo

cinch-test's Introduction

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)

Changelog

  • 0.1.3 (April 25, 2016)
    • [Bug Fix] Responses for private messages no longer fire twice.
    • [Bug Fix] Avoid a @channel not initialized warning for private messages.
  • 0.0.4 (July 2, 2013)
    • [Bug Fix] Should now capture any user.send|notice|privmsg, channel.send|action events that were previously ignored.
    • [Enhancement] replies are now returned as Struct(:message, :event, :time) for more sane testing.
  • 0.0.3 (June 6, 2013)
    • [Bug Fix] Initializing plugins without a config hash works now.
    • [Bug Fix] MockMessage objects now have a real Cinch::User / Cinch::Channel object instead of strings.
    • [Bug Fix] MockMessages with a channel set will also be processed as a :channel event.
    • [Bug Fix] MockMessages of :private events will now also be processed as :message
    • [Bug Fix] All MockMessages will now be processed in as a :catchall event type in addition to other specified types.

cinch-test's People

Contributors

bhaberer avatar jneen avatar petertseng avatar sparkhom avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.