mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
719d3e8a9a
commit
45ea329bcd
1 changed files with 0 additions and 22 deletions
|
@ -1641,28 +1641,6 @@ class BasicsTest < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue