Sha256: 9e3491f289075ac99c0377b3ceb2e0b928c8070e828152919807e9d2a90facca
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb') require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1') class TestScoutCabinet < Test::Unit::TestCase def test_open TmpFile.with_file do |tmpfile| db = ScoutCabinet.open(tmpfile) db["a"] = 1 assert_equal "1", db["a"] db.close db = ScoutCabinet.open(tmpfile, false) assert_equal "1", db["a"] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scout-gear-10.7.1 | test/scout/persist/engine/test_tokyocabinet.rb |
scout-gear-10.7.0 | test/scout/persist/engine/test_tokyocabinet.rb |