From 9eddf9c1300a01d8d8f00286dcd6b71abb24e4ef Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Sat, 3 May 2008 08:17:45 +1000 Subject: [PATCH] outputs whether gem or vendor AR being used --- spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2a0df01..e76a1b3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,12 +7,12 @@ if File.exists?(File.dirname(__FILE__) + '/../../../rails') $: << File.dirname(__FILE__) + '/../../../rails' require 'activerecord/lib/active_record' require 'activerecord/lib/active_record/version' + puts "Using vendor ActiveRecord version #{ActiveRecord::VERSION::STRING}" else require 'active_record' require 'active_record/version' + puts "Using gem ActiveRecord version #{ActiveRecord::VERSION::STRING}" end -puts "Using ActiveRecord version #{ActiveRecord::VERSION::STRING}" - require 'validates_timeliness'