Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cinch-test

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cinch-test

  • 0.1.4
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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.

FAQs

Package last updated on 27 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc