Remove commented out test which refers to old code, old bugs and uses ObjectSpace in a nasty way. [nzkoz]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski 2007-08-29 03:33:26 +00:00
parent 719d3e8a9a
commit 45ea329bcd

@ -1641,28 +1641,6 @@ def test_to_param_should_return_string
assert_kind_of String, Client.find(:first).to_param
end
# FIXME: this test ought to run, but it needs to run sandboxed so that it
# doesn't b0rk the current test environment by undefing everything.
#
#def test_dev_mode_memory_leak
# counts = []
# 2.times do
# require_dependency 'fixtures/company'
# Firm.find(:first)
# Dependencies.clear
# ActiveRecord::Base.reset_subclasses
# Dependencies.remove_subclasses_for(ActiveRecord::Base)
#
# GC.start
#
# count = 0
# ObjectSpace.each_object(Proc) { count += 1 }
# counts << count
# end
# assert counts.last <= counts.first,
# "expected last count (#{counts.last}) to be <= first count (#{counts.first})"
#end
def test_inspect_class
assert_equal 'ActiveRecord::Base', ActiveRecord::Base.inspect
assert_equal 'LoosePerson(abstract)', LoosePerson.inspect