diff options
author | David Trasbo <me@dtrasbo.com> | 2010-06-29 16:54:05 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-29 17:54:51 +0200 |
commit | 735a4db6854e73e871e6b01ec003f0670cc5ee14 (patch) | |
tree | 4acddef837a2dd06e8ede1efcad11b44b4c3f4a2 /activerecord/test | |
parent | 417125e7955e56159524992b0e95e92d2f7bf0cb (diff) | |
download | rails-735a4db6854e73e871e6b01ec003f0670cc5ee14.tar.gz rails-735a4db6854e73e871e6b01ec003f0670cc5ee14.tar.bz2 rails-735a4db6854e73e871e6b01ec003f0670cc5ee14.zip |
Remove ActiveRecord::Base#class_name [#379 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index f8b90d8877..ba7db838ca 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -798,25 +798,6 @@ class BasicsTest < ActiveRecord::TestCase assert_raise(NoMethodError) { t.title2 } end - def test_class_name - assert_equal "Firm", ActiveRecord::Base.class_name("firms") - assert_equal "Category", ActiveRecord::Base.class_name("categories") - assert_equal "AccountHolder", ActiveRecord::Base.class_name("account_holder") - - ActiveRecord::Base.pluralize_table_names = false - assert_equal "Firms", ActiveRecord::Base.class_name( "firms" ) - ActiveRecord::Base.pluralize_table_names = true - - ActiveRecord::Base.table_name_prefix = "test_" - assert_equal "Firm", ActiveRecord::Base.class_name( "test_firms" ) - ActiveRecord::Base.table_name_suffix = "_tests" - assert_equal "Firm", ActiveRecord::Base.class_name( "test_firms_tests" ) - ActiveRecord::Base.table_name_prefix = "" - assert_equal "Firm", ActiveRecord::Base.class_name( "firms_tests" ) - ActiveRecord::Base.table_name_suffix = "" - assert_equal "Firm", ActiveRecord::Base.class_name( "firms" ) - end - def test_null_fields assert_nil Topic.find(1).parent_id assert_nil Topic.create("title" => "Hey you").parent_id |