Test::Unit 2.0 compatability

This commit is contained in:
Mike Gunderloy 2009-11-26 11:02:14 -06:00
parent e5899343b0
commit 272c102f95

View File

@ -1,7 +1,11 @@
ENV['RAILS_ENV'] = 'test' ENV['RAILS_ENV'] = 'test'
require 'rubygems' require 'rubygems'
require 'test/unit' begin
gem 'test-unit', '~> 2.0'
rescue Gem::LoadError
require 'test/unit'
end
require 'action_controller' require 'action_controller'
require 'active_record' require 'active_record'
require 'action_view' require 'action_view'