aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/inclusion_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/inclusion_test.rb')
-rw-r--r--activerecord/test/cases/inclusion_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/cases/inclusion_test.rb b/activerecord/test/cases/inclusion_test.rb
index 07d538f6bc..d092e748e8 100644
--- a/activerecord/test/cases/inclusion_test.rb
+++ b/activerecord/test/cases/inclusion_test.rb
@@ -6,6 +6,14 @@ class BasicInclusionModelTest < ActiveRecord::TestCase
Teapot.create!(:name => "Ronnie Kemper")
assert_equal "Ronnie Kemper", Teapot.find(1).name
end
+
+ def test_inherited_model
+ teapot = CoolTeapot.create!(:name => "Bob")
+ teapot.reload
+
+ assert_equal "Bob", teapot.name
+ assert_equal "mmm", teapot.aaahhh
+ end
end
class InclusionUnitTest < ActiveRecord::TestCase