Sha256: 1b468afe717e032b3c10b51fa45c9fdab4f7ab72d2969cce37887605324bb356

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

Stored size: 516 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

begin
  require "moneta/sdbm"

  describe "Moneta::SDBM" do
    before(:each) do
      @cache = Moneta::SDBM.new(:file => File.join(File.dirname(__FILE__), "sdbm_cache"))
      @cache.clear
    end
  
    after(:all) do
      FileUtils.rm_rf(Dir.glob(File.join(File.dirname(__FILE__), "sdbm_cache*")))
    end
  
    if ENV['MONETA_TEST'].nil? || ENV['MONETA_TEST'] == 'sdbm'
      it_should_behave_like "a read/write Moneta cache"
    end
  end
rescue SystemExit
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
benschwarz-smoke-0.5.0 vendor/moneta/spec/moneta_sdbm_spec.rb
benschwarz-smoke-0.5.1 vendor/moneta/spec/moneta_sdbm_spec.rb
benschwarz-smoke-0.5.2 vendor/moneta/spec/moneta_sdbm_spec.rb
benschwarz-smoke-0.5.3 vendor/moneta/spec/moneta_sdbm_spec.rb
benschwarz-smoke-0.5.4 vendor/moneta/spec/moneta_sdbm_spec.rb
benschwarz-smoke-0.5.5 vendor/moneta/spec/moneta_sdbm_spec.rb
benschwarz-smoke-0.5.6 vendor/moneta/spec/moneta_sdbm_spec.rb