diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-03 19:30:28 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-03 19:30:28 -0800 |
commit | 1459c8cc1d6baca324bf2350d8f89f4faa054f18 (patch) | |
tree | 0b50bb958fc400773e41cfa3fea42624dfcb0cc8 /activerecord/test/cases/base_test.rb | |
parent | 6042067c0b20602e72954450e9e8a19dfa8a9f7d (diff) | |
download | rails-1459c8cc1d6baca324bf2350d8f89f4faa054f18.tar.gz rails-1459c8cc1d6baca324bf2350d8f89f4faa054f18.tar.bz2 rails-1459c8cc1d6baca324bf2350d8f89f4faa054f18.zip |
Changed ActiveRecord::Base.store_full_sti_class to be true by default reflecting the previously announced Rails 3 default [DHH]
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 730d9d8df7..47e7a4bb79 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -2138,8 +2138,11 @@ class BasicsTest < ActiveRecord::TestCase end def test_type_name_with_module_should_handle_beginning + ActiveRecord::Base.store_full_sti_class = false assert_equal 'ActiveRecord::Person', ActiveRecord::Base.send(:type_name_with_module, 'Person') assert_equal '::Person', ActiveRecord::Base.send(:type_name_with_module, '::Person') + ensure + ActiveRecord::Base.store_full_sti_class = true end def test_to_param_should_return_string |