spec/persevere_adapter_spec.rb in dm-persevere-adapter-0.29.0 vs spec/persevere_adapter_spec.rb in dm-persevere-adapter-0.30.0

- old
+ new

@@ -74,10 +74,14 @@ 'cid' => {'type' => 'string' }, 'newdata' => { 'type' => 'any'} } } end + + after :all do + DataMapper::Model.descendants.each{|cur_model| cur_model.auto_migrate_down! } + end it_should_behave_like 'An Adapter' describe 'migrations' do it 'should create the Bozon storage' do @@ -168,9 +172,13 @@ before :all do @dragons = Dragon.all @countries = Country.all end it_should_behave_like 'An Aggregatable Class' + + it "should count with like conditions" do + Country.count(:name.like => '%n%').should == 4 + end end describe 'limiting and offsets' do before(:all) do Bozon.auto_migrate!