metropolis.git  about / heads / tags
key-value store for Rack
blob e04fe2f40a59c56b891988f8a8d69847cbf43774 405 bytes (raw)
$ git show HEAD:test/test_tdb_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
 
# -*- encoding: binary -*-
require './test/rack_read_write.rb'
$-w = true
require 'metropolis'

class Test_TDB_Single < Test::Unit::TestCase
  attr_reader :tmp, :o, :uri
  include TestRackReadWrite

  def setup
    @tmp = Tempfile.new('tdb')
    @path = @tmp.path + '.tdb'
    @uri = "tdb://#{@path}"
    @app_opts = { :uri => @uri }
  end

  def teardown
    @tmp.close!
    File.unlink(@path)
  end
end

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