# Generated by generate.rb require 'helper' describe_moneta "simple_datamapper_with_repository" do require 'dm-core' DataMapper.setup(:default, :adapter => :in_memory) def new_store Moneta.new(:DataMapper, :repository => :repo, :setup => "sqlite3://#{make_tempdir}/simple_datamapper_with_repository", :logger => {:out => File.open(File.join(make_tempdir, 'simple_datamapper_with_repository.log'), 'a')}) end def load_value(value) ::Marshal.load(value.unpack('m').first) end include_context 'setup_store' 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_stringkey_objectvalue' it_should_behave_like 'null_stringkey_stringvalue' it_should_behave_like 'null_stringkey_hashvalue' it_should_behave_like 'null_stringkey_booleanvalue' it_should_behave_like 'null_hashkey_objectvalue' it_should_behave_like 'null_hashkey_stringvalue' it_should_behave_like 'null_hashkey_hashvalue' it_should_behave_like 'null_hashkey_booleanvalue' it_should_behave_like 'store_objectkey_objectvalue' it_should_behave_like 'store_objectkey_stringvalue' it_should_behave_like 'store_objectkey_hashvalue' it_should_behave_like 'store_objectkey_booleanvalue' it_should_behave_like 'store_stringkey_objectvalue' it_should_behave_like 'store_stringkey_stringvalue' it_should_behave_like 'store_stringkey_hashvalue' it_should_behave_like 'store_stringkey_booleanvalue' it_should_behave_like 'store_hashkey_objectvalue' it_should_behave_like 'store_hashkey_stringvalue' it_should_behave_like 'store_hashkey_hashvalue' it_should_behave_like 'store_hashkey_booleanvalue' it_should_behave_like 'returndifferent_objectkey_objectvalue' it_should_behave_like 'returndifferent_objectkey_stringvalue' it_should_behave_like 'returndifferent_objectkey_hashvalue' it_should_behave_like 'returndifferent_stringkey_objectvalue' it_should_behave_like 'returndifferent_stringkey_stringvalue' it_should_behave_like 'returndifferent_stringkey_hashvalue' it_should_behave_like 'returndifferent_hashkey_objectvalue' it_should_behave_like 'returndifferent_hashkey_stringvalue' it_should_behave_like 'returndifferent_hashkey_hashvalue' it_should_behave_like 'marshallable_key' it_should_behave_like 'marshallable_value' it_should_behave_like 'transform_value' it_should_behave_like 'not_increment' end