diff options
Diffstat (limited to 'test/test_tdb_single.rb')
-rw-r--r-- | test/test_tdb_single.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/test_tdb_single.rb b/test/test_tdb_single.rb new file mode 100644 index 0000000..e04fe2f --- /dev/null +++ b/test/test_tdb_single.rb @@ -0,0 +1,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 |