aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/inclusion_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/inclusion_test.rb b/activerecord/test/cases/inclusion_test.rb
index 374e4e01d3..4b4590e218 100644
--- a/activerecord/test/cases/inclusion_test.rb
+++ b/activerecord/test/cases/inclusion_test.rb
@@ -7,6 +7,11 @@ class BasicInclusionModelTest < ActiveRecord::TestCase
assert_equal "Ronnie Kemper", Teapot.find(1).name
end
+ def test_initialization
+ t = Teapot.new(:name => "Bob")
+ assert_equal "Bob", t.name
+ end
+
def test_inherited_model
teapot = CoolTeapot.create!(:name => "Bob")
teapot.reload