From dd06ceee0c26703a73acb225a6500579f38c8c3e Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Sun, 14 Jun 2015 20:05:45 +0200 Subject: journal: even more tests --- lib/rbot/journal.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/journal.rb b/lib/rbot/journal.rb index 71b0c7ff..a25f3a9f 100644 --- a/lib/rbot/journal.rb +++ b/lib/rbot/journal.rb @@ -355,7 +355,7 @@ module Journal @subscriptions.delete subscription end - def find(query, limit=100, offset=0, &block) + def find(query=nil, limit=100, offset=0, &block) if block_given? begin res = @storage.find(query, limit, offset) @@ -366,6 +366,14 @@ module Journal end end + def count(query=nil) + @storage.count(query) + end + + def remove(query=nil) + @storage.remove(query) + end + end end # Journal -- cgit v1.2.3