aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
diff options
context:
space:
mode:
authorTakehiro Adachi <takehiro0740@gmail.com>2013-03-18 15:45:39 +0900
committerTakehiro Adachi <takehiro0740@gmail.com>2013-03-18 15:45:39 +0900
commit4666108c686f0ccb51dde272eee101ecc6f389f6 (patch)
tree72db69d7901d47765b17eb85a8a2b3b1300a4b07 /activerecord/test/cases/base_test.rb
parentc4a7c31581c8386198317a2385f9c7d462c18497 (diff)
downloadrails-4666108c686f0ccb51dde272eee101ecc6f389f6.tar.gz
rails-4666108c686f0ccb51dde272eee101ecc6f389f6.tar.bz2
rails-4666108c686f0ccb51dde272eee101ecc6f389f6.zip
move tests out from base_test.rb
These tests should be in inheritance_test.rb since its testing a feature which is implemented in inheritance.rb
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rw-r--r--activerecord/test/cases/base_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 960c27da3e..445322486c 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -307,20 +307,6 @@ class BasicsTest < ActiveRecord::TestCase
assert_equal("last_read", ex.errors[0].attribute)
end
- def test_initialize_abstract_class
- e = assert_raises(NotImplementedError) do
- FirstAbstractClass.new
- end
- assert_equal("FirstAbstractClass is an abstract class and can not be instantiated.", e.message)
- end
-
- def test_initialize_base
- e = assert_raises(NotImplementedError) do
- ActiveRecord::Base.new
- end
- assert_equal("ActiveRecord::Base is an abstract class and can not be instantiated.", e.message)
- end
-
def test_create_after_initialize_without_block
cb = CustomBulb.create(:name => 'Dude')
assert_equal('Dude', cb.name)