Sha256: 14b1c1a5f4d1b8371608b728335383fb5b539360be8278efed8fc46174f947cc
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' module Viiite describe BDB, ".new" do subject{ BDB.new(options) } describe "with default options" do let(:options){ {} } specify{ subject.should be_cached subject.folder.should eq("benchmarks") subject.cache_folder.should eq("benchmarks/.cache") subject.cache_mode.should eq("w") } end describe "with a specific folder" do let(:options){ {:folder => "/tmp"} } specify{ subject.should be_cached subject.folder.should eq("/tmp") subject.cache_folder.should eq("/tmp/.cache") } end describe "with cache set to false" do let(:options){ {:cache => false} } specify{ subject.folder.should eq("benchmarks") subject.should_not be_cached } end describe "with cache set to a specific folder" do let(:options){ {:cache => "/tmp"} } specify{ subject.should be_cached subject.folder.should eq("benchmarks") subject.cache_folder.should eq("/tmp") } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
viiite-0.2.0 | spec/unit/bdb/test_new.rb |