Skip to content

Commit

Permalink
Dispatcher test requires abstract_unit. Cleanup abstract_unit.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Mar 1, 2007
1 parent e69390d commit 36cf67e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions railties/test/abstract_unit.rb
Expand Up @@ -4,10 +4,7 @@
$:.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__)
Expand Down
6 changes: 2 additions & 4 deletions 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'

Expand Down Expand Up @@ -138,4 +136,4 @@ def dispatch(output = @output)
def assert_subclasses(howmany, klass, message = klass.subclasses.inspect)
assert_equal howmany, klass.subclasses.size, message
end
end
end

0 comments on commit 36cf67e

Please sign in to comment.