Sha256: a86ea4153c14123a60b0e2d828d712721f2a29b76d9ce2a741901b35d3a3f5db
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Spectate::Tree do class Dummy include Spectate::Tree end before(:all) do create_config @dbfile = File.join(@tempdir, 'spectate.tcb') @this = Dummy.new end it "creates the Tokyo Cabinet tree if it didn't exist" do File.exists?(@dbfile).should be_true end it "initializes the root if it wasn't already" do root = nil Rufus::Tokyo::Cabinet.open(@dbfile, :mode => 'r') do |db| root = db['/'] end root.should == 'RootSpectator' end after(:all) do remove_config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spectate-0.0.0 | spec/tree_spec.rb |