Sha256: deab3e04bf3dc615e974ac11dcbce6a9d886da563aea64fb1af4dce2aa2b825e

Contents?: true

Size: 889 Bytes

Versions: 3

Compression:

Stored size: 889 Bytes

Contents

# coding: binary
# Generated by generate-specs
require 'helper'

describe_moneta "adapter_sdbm" do
  def features
    [:create, :increment]
  end

  def new_store
    Moneta::Adapters::SDBM.new(file: File.join(make_tempdir, "adapter_sdbm"))
  end

  def load_value(value)
    Marshal.load(value)
  end

  include_context 'setup_store'
  it_should_behave_like 'create'
  it_should_behave_like 'features'
  it_should_behave_like 'increment'
  it_should_behave_like 'null_stringkey_stringvalue'
  it_should_behave_like 'null_pathkey_stringvalue'
  it_should_behave_like 'persist_stringkey_stringvalue'
  it_should_behave_like 'persist_pathkey_stringvalue'
  it_should_behave_like 'returndifferent_stringkey_stringvalue'
  it_should_behave_like 'returndifferent_pathkey_stringvalue'
  it_should_behave_like 'store_stringkey_stringvalue'
  it_should_behave_like 'store_pathkey_stringvalue'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
moneta-1.0.0 spec/moneta/adapter_sdbm_spec.rb
moneta-0.8.1 spec/moneta/adapter_sdbm_spec.rb
moneta-0.8.0 spec/moneta/adapter_sdbm_spec.rb