spec/moneta/transformer_bson_spec.rb in moneta-0.7.5 vs spec/moneta/transformer_bson_spec.rb in moneta-0.7.6
- old
+ new
@@ -1,9 +1,13 @@
# Generated by generate-specs
require 'helper'
describe_moneta "transformer_bson" do
+ def log
+ @log ||= File.open(File.join(make_tempdir, 'transformer_bson.log'), 'a')
+ end
+
def new_store
Moneta.build do
use :Transformer, :key => :bson, :value => :bson
adapter :Memory
end
@@ -38,6 +42,10 @@
it_should_behave_like 'store_hashkey_integervalue'
it_should_behave_like 'store_integerkey_stringvalue'
it_should_behave_like 'store_integerkey_hashvalue'
it_should_behave_like 'store_integerkey_integervalue'
it_should_behave_like 'transform_value'
+ it 'compile transformer class' do
+ store.should_not be_nil
+ Moneta::Transformer::BsonKeyBsonValue.should_not be_nil
+ end
end