summaryrefslogtreecommitdiff
path: root/test/test_registry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_registry.rb')
-rw-r--r--test/test_registry.rb44
1 files changed, 25 insertions, 19 deletions
diff --git a/test/test_registry.rb b/test/test_registry.rb
index 1f25f89d..097852aa 100644
--- a/test/test_registry.rb
+++ b/test/test_registry.rb
@@ -278,29 +278,35 @@ module RegistryTestModule
end
end
-class RegistryDBMTest < Test::Unit::TestCase
- include RegistryTestModule
- include RegistryHashInterfaceTests
-
- def initialize(o)
- super o
- @format = 'dbm'
- Irc::Bot::Registry.new(@format)
- @registry_class = Irc::Bot::Registry::DBMAccessor
+begin
+ require 'dbm'
+ class RegistryDBMTest < Test::Unit::TestCase
+ include RegistryTestModule
+ include RegistryHashInterfaceTests
+
+ def initialize(o)
+ super o
+ @format = 'dbm'
+ Irc::Bot::Registry.new(@format)
+ @registry_class = Irc::Bot::Registry::DBMAccessor
+ end
end
-end
+rescue Exception; end
-class RegistryTCTest < Test::Unit::TestCase
- include RegistryTestModule
- include RegistryHashInterfaceTests
+begin
+ require 'tc'
+ class RegistryTCTest < Test::Unit::TestCase
+ include RegistryTestModule
+ include RegistryHashInterfaceTests
- def initialize(o)
- super o
- @format = 'tc'
- Irc::Bot::Registry.new(@format)
- @registry_class = Irc::Bot::Registry::TokyoCabinetAccessor
+ def initialize(o)
+ super o
+ @format = 'tc'
+ Irc::Bot::Registry.new(@format)
+ @registry_class = Irc::Bot::Registry::TokyoCabinetAccessor
+ end
end
-end
+rescue Exception; end
begin
require 'daybreak'