From 272c102f959976f32d29d8f1075084c93519b348 Mon Sep 17 00:00:00 2001 From: Mike Gunderloy Date: Thu, 26 Nov 2009 11:02:14 -0600 Subject: [PATCH] Test::Unit 2.0 compatability --- test/test_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 90cd778..12fffe9 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,7 +1,11 @@ ENV['RAILS_ENV'] = 'test' require 'rubygems' -require 'test/unit' +begin + gem 'test-unit', '~> 2.0' +rescue Gem::LoadError + require 'test/unit' +end require 'action_controller' require 'active_record' require 'action_view'