diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-08-29 03:33:26 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-08-29 03:33:26 +0000 |
commit | 45ea329bcd0e463757365a695e90c13f54042da5 (patch) | |
tree | 04fbf6e81421c841d2f468bf9fb56a70e9921d78 /activerecord | |
parent | 719d3e8a9af1e3cd428c3177f99ef7e44b3b9814 (diff) | |
download | rails-45ea329bcd0e463757365a695e90c13f54042da5.tar.gz rails-45ea329bcd0e463757365a695e90c13f54042da5.tar.bz2 rails-45ea329bcd0e463757365a695e90c13f54042da5.zip |
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
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/test/base_test.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 1b6714a495..bf9a8a5f90 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -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 |