metropolis.git  about / heads / tags
key-value store for Rack
blob c8e33a970501af3b674aac3ea0718e021b64347a 469 bytes (raw)
$ git show HEAD:test/test_tc_hdb_single.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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

git clone https://yhbt.net/metropolis.git