spec/moneta/simple_file_spec.rb in moneta-0.7.5 vs spec/moneta/simple_file_spec.rb in moneta-0.7.6
- old
+ new
@@ -1,20 +1,25 @@
# Generated by generate-specs
require 'helper'
describe_moneta "simple_file" do
+ def log
+ @log ||= File.open(File.join(make_tempdir, 'simple_file.log'), 'a')
+ end
+
def new_store
- Moneta.new(:File, :dir => File.join(make_tempdir, "simple_file"), :logger => {:out => File.open(File.join(make_tempdir, 'simple_file.log'), 'a')})
+ Moneta.new(:File, :dir => File.join(make_tempdir, "simple_file"), :logger => {:out => log})
end
def load_value(value)
Marshal.load(value)
end
include_context 'setup_store'
it_should_behave_like 'increment'
it_should_behave_like 'marshallable_key'
it_should_behave_like 'marshallable_value'
+ it_should_behave_like 'multiprocess'
it_should_behave_like 'null_objectkey_objectvalue'
it_should_behave_like 'null_objectkey_stringvalue'
it_should_behave_like 'null_objectkey_hashvalue'
it_should_behave_like 'null_objectkey_booleanvalue'
it_should_behave_like 'null_objectkey_nilvalue'