spec/moneta/simple_kyotocabinet_spec.rb in moneta-0.7.10 vs spec/moneta/simple_kyotocabinet_spec.rb in moneta-0.7.11
- old
+ new
@@ -1,18 +1,14 @@
# Generated by generate-specs
require 'helper'
describe_moneta "simple_kyotocabinet" do
- def log
- @log ||= File.open(File.join(make_tempdir, 'simple_kyotocabinet.log'), 'a')
- end
-
def features
[:create, :increment]
end
def new_store
- Moneta.new(:KyotoCabinet, :file => File.join(make_tempdir, "simple_kyotocabinet.kch"), :logger => {:out => log})
+ Moneta.new(:KyotoCabinet, :file => File.join(make_tempdir, "simple_kyotocabinet.kch"), :logger => {:file => File.join(make_tempdir, 'simple_kyotocabinet.log')})
end
def load_value(value)
Marshal.load(value)
end