Sha256: 3790df3a7fd847fb87a7269ed5748e3e78f3bc6d323a58640005e89eb78a81a8
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
require 'test/unit' require 'rubygems' require 'mocha' require 'ruby-debug' require 'activerecord' require File.dirname(__FILE__) + '/../lib/biobot' module TestHelpers def self.included(base) base.extend(ClassMethods) end module ClassMethods def register_command(*args); end def register_periodical(*args); end end def mock_message(from, body) stub('jabber message', :from => from, :body => body) end def clear_commands Biobot::Base.send(:class_variable_get, '@@command_chain').clear end def clear_periodicals Biobot::Base.send(:class_variable_get, '@@periodicals').clear end end Test::Unit::TestCase.send(:include, TestHelpers)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
viking-biobot-0.0.1 | test/helper.rb |
viking-biobot-0.0.2 | test/helper.rb |
viking-biobot-0.0.3 | test/helper.rb |
viking-biobot-0.0.4 | test/helper.rb |