spec/public/to_csv_spec.rb in dm-serializer-1.0.0.rc2 vs spec/public/to_csv_spec.rb in dm-serializer-1.0.0.rc3

- old
+ new

@@ -5,10 +5,11 @@ # # ==== blah, it's CSV # before(:all) do + DataMapper.finalize query = DataMapper::Query.new(DataMapper::repository(:default), Cow) resources = [ {:id => 1, :composite => 2, :name => 'Betsy', :breed => 'Jersey'}, {:id => 10, :composite => 20, :name => 'Berta', :breed => 'Guernsey'} @@ -47,11 +48,12 @@ describe "multiple repositories" do before(:all) do [ :default, :alternate ].each do |repository_name| DataMapper.repository(repository_name) do + DataMapper.finalize QuanTum::Cat.auto_migrate! - QuanTum::Cat.all.destroy! + QuanTum::Cat.destroy! end end end it "should use the repsoitory for the model" do