From 36cf67e8e50056e178f2d43705a324778fddfd0f Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 1 Mar 2007 23:29:56 +0000 Subject: [PATCH] Dispatcher test requires abstract_unit. Cleanup abstract_unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/test/abstract_unit.rb | 5 +---- railties/test/dispatcher_test.rb | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/railties/test/abstract_unit.rb b/railties/test/abstract_unit.rb index 07aeb77fdf..68ddb0c24f 100644 --- a/railties/test/abstract_unit.rb +++ b/railties/test/abstract_unit.rb @@ -4,10 +4,7 @@ $:.unshift File.dirname(__FILE__) + "/../lib" $:.unshift File.dirname(__FILE__) + "/../builtin/rails_info" require 'test/unit' -require 'rubygems' - -# Needed for the class mock delegation -#require File.dirname(__FILE__) + "/../../activesupport/lib/active_support/core_ext/class/attribute_accessors" +require 'active_support' if defined?(RAILS_ROOT) RAILS_ROOT.replace File.dirname(__FILE__) diff --git a/railties/test/dispatcher_test.rb b/railties/test/dispatcher_test.rb index 31d1634cc0..ad5a4d6275 100644 --- a/railties/test/dispatcher_test.rb +++ b/railties/test/dispatcher_test.rb @@ -1,8 +1,6 @@ -$:.unshift File.dirname(__FILE__) + "/../lib" -$:.unshift File.dirname(__FILE__) + "/../../actionpack/lib" +require "#{File.dirname(__FILE__)}/abstract_unit" $:.unshift File.dirname(__FILE__) + "/../../actionmailer/lib" -require 'test/unit' require 'stringio' require 'cgi' @@ -138,4 +136,4 @@ class DispatcherTest < Test::Unit::TestCase def assert_subclasses(howmany, klass, message = klass.subclasses.inspect) assert_equal howmany, klass.subclasses.size, message end -end \ No newline at end of file +end