~ubuntu-branches/ubuntu/trusty/ruby-moneta/trusty

« back to all changes in this revision

Viewing changes to spec/moneta/adapter_dbm_spec.rb

  • Committer: Package Import Robot
  • Author(s): Jérémy Bobbio
  • Date: 2013-05-14 09:40:52 UTC
  • mfrom: (1.2.1) (3.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130514094052-p8i17yyswpx6c1zc
Tags: 0.7.16-1
* Team upload.
* New upstream version.
* Remove transitional packages.
* Add Vcs-* fields.
* Fix a typo in debian/copyright.
* Add a Breaks for chef given the API has changed between 0.6 and 0.7.
* Refresh patches:
  - remove 0002-Mark-concurrent-increment-example-as-pending.patch:
    fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Generated by generate-specs
 
2
require 'helper'
 
3
 
 
4
describe_moneta "adapter_dbm" do
 
5
  def features
 
6
    [:create, :increment]
 
7
  end
 
8
 
 
9
  def new_store
 
10
    Moneta::Adapters::DBM.new(:file => File.join(make_tempdir, "adapter_dbm"))
 
11
  end
 
12
 
 
13
  def load_value(value)
 
14
    Marshal.load(value)
 
15
  end
 
16
 
 
17
  include_context 'setup_store'
 
18
  it_should_behave_like 'create'
 
19
  it_should_behave_like 'features'
 
20
  it_should_behave_like 'increment'
 
21
  it_should_behave_like 'null_stringkey_stringvalue'
 
22
  it_should_behave_like 'persist_stringkey_stringvalue'
 
23
  it_should_behave_like 'returndifferent_stringkey_stringvalue'
 
24
  it_should_behave_like 'store_stringkey_stringvalue'
 
25
  it_should_behave_like 'store_large'
 
26
end