summaryrefslogtreecommitdiff
path: root/test/mock.rb
diff options
context:
space:
mode:
authorMatthias Hecker <mail@apoc.cc>2020-04-06 21:08:55 +0200
committerMatthias Hecker <mail@apoc.cc>2020-04-06 21:08:55 +0200
commit07a397f63f0c7dc7f53830a57ce9048cfd9efb53 (patch)
treeb5fca98ca966fafcc8017f276bd2524af2e889c3 /test/mock.rb
parent618df277b7cb7d160ba5c86d1a22298a4741ed5f (diff)
plugin(points): +/- must come after, closes #34
This modifies the karma/points plugin to ignore increment/ decrement suffixes. `--SOMETHING` is more trouble than its worth, people will write --NAME as a signature, or paste a command line argument, e.g. `ls --sort time` which causes issues. I also added tests for the points plugin, the plan is to make the plugin testing easier more "rubionic"
Diffstat (limited to 'test/mock.rb')
-rw-r--r--test/mock.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/mock.rb b/test/mock.rb
index f1ce92dd..511daaba 100644
--- a/test/mock.rb
+++ b/test/mock.rb
@@ -1,6 +1,7 @@
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
$:.unshift File.join(File.dirname(__FILE__), '..')
-
+#require 'rbot/logger'
+#Irc::Bot::LoggerManager.instance.set_level(5)
module Irc
class Bot
@@ -55,7 +56,7 @@ class MockMessage
def initialize(message='', source='user')
@message = message
@sourcenick = source
- @channel = Irc::Channel.new('#test', '', [], server: nil)
+ @channel = Irc::Channel.new('#test', '', ['bob'], server: nil)
@replies = []
end