diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-03-31 02:33:04 +0100 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-04-12 21:31:20 -0700 |
commit | 9cea9bc7f0c104095dddc036bea7f6ecb9590075 (patch) | |
tree | 612e9c686756164fa5fedb71985f6105624137f4 /activerecord/test/cases/base_test.rb | |
parent | ee04aea3ec1461368a72db525b325846e29b0045 (diff) | |
download | rails-9cea9bc7f0c104095dddc036bea7f6ecb9590075.tar.gz rails-9cea9bc7f0c104095dddc036bea7f6ecb9590075.tar.bz2 rails-9cea9bc7f0c104095dddc036bea7f6ecb9590075.zip |
Refactor compute_type to handle situations where the correct class is already loaded
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 8bff13aa96..1c3655b587 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -2205,14 +2205,6 @@ class BasicsTest < ActiveRecord::TestCase assert xml.include?(%(<arbitrary-element>#{value}</arbitrary-element>)) 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 assert_kind_of String, Client.find(:first).to_param end |