spec/spec_helper.rb in rack-datamapper-0.2.4 vs spec/spec_helper.rb in rack-datamapper-0.2.5

- old
+ new

@@ -1,21 +1,20 @@ require 'pathname' require 'rubygems' - -gem 'rspec', '~>1.2' -require 'spec' - +gem 'dm-core', '0.9.10' $LOAD_PATH << Pathname(__FILE__).dirname.parent.expand_path + 'lib' require 'rack_datamapper' - +require 'dm-core/version' +p DataMapper::VERSION def load_driver(name, default_uri) return false if ENV['ADAPTER'] != name.to_s begin DataMapper.setup(name, ENV["#{name.to_s.upcase}_SPEC_URI"] || default_uri) DataMapper::Repository.adapters[:default] = DataMapper::Repository.adapters[name] true rescue LoadError => e + p e.backtrace warn "Could not load do_#{name}: #{e}" false end end