benchmarks/to_xml.rb in dm-serializer-0.9.11 vs benchmarks/to_xml.rb in dm-serializer-0.10.0

- old
+ new

@@ -1,9 +1,9 @@ require "rubygems" require 'pathname' -gem 'dm-core', '0.9.11' +gem 'dm-core', '0.10.0' require 'dm-core' spec_dir_path = Pathname(__FILE__).dirname.expand_path $LOAD_PATH.unshift(spec_dir_path.parent + 'lib/') require 'dm-serializer' @@ -28,11 +28,11 @@ property :id, Integer, :key => true property :composite, Integer, :key => true property :name, String property :breed, String - has n, :baby_cows, :class_name => 'Cow' - belongs_to :mother_cow, :class_name => 'Cow' + has n, :baby_cows, :model => 'Cow' + belongs_to :mother_cow, :model => 'Cow' end require "benchwarmer" TIMES = 2000