about summary refs log tree commit
path: root/test/test_tc_hdb_single.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tc_hdb_single.rb')
-rw-r--r--test/test_tc_hdb_single.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_tc_hdb_single.rb b/test/test_tc_hdb_single.rb
new file mode 100644
index 0000000..c8e33a9
--- /dev/null
+++ b/test/test_tc_hdb_single.rb
@@ -0,0 +1,22 @@
+# -*- encoding: binary -*-
+require './test/rack_read_write.rb'
+require 'tokyocabinet' # FIXME: emits warning with 1.29 gem
+$-w = true
+require 'metropolis'
+
+class Test_TC_HDB_Single < Test::Unit::TestCase
+  attr_reader :tmp, :o, :uri
+  include TestRackReadWrite
+
+  def setup
+    @tmp = Tempfile.new('tchdb')
+    @path = @tmp.path + '.tch'
+    @uri = "tc://#{@path}"
+    @app_opts = { :uri => @uri }
+  end
+
+  def teardown
+    @tmp.close!
+    File.unlink(@path)
+  end
+end