spec/moneta/simple_hashfile_spec.rb in moneta-0.7.5 vs spec/moneta/simple_hashfile_spec.rb in moneta-0.7.6

- old
+ new

@@ -1,20 +1,25 @@ # Generated by generate-specs require 'helper' describe_moneta "simple_hashfile" do + def log + @log ||= File.open(File.join(make_tempdir, 'simple_hashfile.log'), 'a') + end + def new_store - Moneta.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile"), :logger => {:out => File.open(File.join(make_tempdir, 'simple_hashfile.log'), 'a')}) + Moneta.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile"), :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'