require 'rubygems' TestCase = begin require 'minitest/unit' MiniTest::Unit.autorun MiniTest::Unit::TestCase rescue LoadError require 'test/unit' Test::Unit::TestCase end require 'pagify' #gem 'dm-core', '<0.10' #gem 'dm-aggregates', '<0.10' require 'dm-core' require 'dm-aggregates' require 'active_record' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.8.7') class Symbol def to_proc lambda{ |*args| args.shift.__send__(self, *args) } end end end