spec/spec_helper.rb in cinch-dicebag-1.0.2 vs spec/spec_helper.rb in cinch-dicebag-1.0.3

- old
+ new

@@ -1,26 +1,11 @@ require 'coveralls' -Coveralls.wear! -require 'cinch-dicebag' +require 'simplecov' -def fake_bot - bot = Cinch::Bot.new do - configure do |c| - c.plugins.options[Cinch::Plugins::Dicebag][:filename] = '/dev/null' - end - end - bot.loggers.level = :fatal - bot - return bot -end +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] +SimpleCov.start -module Cinch - module Plugin - def initialize(opts = {}) - @bot = fake_bot - @handlers = [] - @timers = [] - # Don't init the bot - # __register - end - end -end +require 'cinch-dicebag' +require 'cinch/test'