Sha256: 2f06cad0142a8d657368cfa16e384606db39fface76efd0e6a44044e09da3bbb

Contents?: true

Size: 501 Bytes

Versions: 7

Compression:

Stored size: 501 Bytes

Contents

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

begin
  require "moneta/file"

  describe "Moneta::File" do
    before(:each) do
      @cache = Moneta::File.new(:path => File.join(File.dirname(__FILE__), "file_cache"))
      @cache.clear
    end

    after(:all) do
      FileUtils.rm_rf(File.join(File.dirname(__FILE__), "file_cache"))
    end

    if ENV['MONETA_TEST'].nil? || ENV['MONETA_TEST'] == 'file'
      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_file_spec.rb
benschwarz-smoke-0.5.1 vendor/moneta/spec/moneta_file_spec.rb
benschwarz-smoke-0.5.2 vendor/moneta/spec/moneta_file_spec.rb
benschwarz-smoke-0.5.3 vendor/moneta/spec/moneta_file_spec.rb
benschwarz-smoke-0.5.4 vendor/moneta/spec/moneta_file_spec.rb
benschwarz-smoke-0.5.5 vendor/moneta/spec/moneta_file_spec.rb
benschwarz-smoke-0.5.6 vendor/moneta/spec/moneta_file_spec.rb