Skip to content
Browse files

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
  • Loading branch information...
1 parent 719d3e8 commit 45ea329bcd0e463757365a695e90c13f54042da5 @NZKoz NZKoz committed Aug 29, 2007
Showing with 0 additions and 22 deletions.
  1. +0 −22 activerecord/test/base_test.rb
View
22 activerecord/test/base_test.rb
@@ -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

0 comments on commit 45ea329

Please sign in to comment.
Something went wrong with that request. Please try again.