diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-03 04:30:14 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-03 04:30:14 -0800 |
commit | b4f189a162f4280b360dbc2a6635bbff6c6f09bc (patch) | |
tree | 638e165ad8490056f378d1715e4b01b88d1e2be8 /activerecord/test/cases/base_test.rb | |
parent | bf794bb36f3bd06e2e863cd6c6dfb6ceae116af2 (diff) | |
parent | e8357935acde972fe42a1a3e0d8c969e518956ed (diff) | |
download | rails-b4f189a162f4280b360dbc2a6635bbff6c6f09bc.tar.gz rails-b4f189a162f4280b360dbc2a6635bbff6c6f09bc.tar.bz2 rails-b4f189a162f4280b360dbc2a6635bbff6c6f09bc.zip |
Merge pull request #9159 from lexmag/col_defaults-dup-fix
Backport: Duplicate column_defaults properly
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index b849eead26..97d6c0cf88 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -325,6 +325,12 @@ class BasicsTest < ActiveRecord::TestCase assert parrot.valid? end + def test_default_values_are_deeply_dupped + company = Company.new + company.description << "foo" + assert_equal "", Company.new.description + end + def test_load topics = Topic.find(:all, :order => 'id') assert_equal(4, topics.size) @@ -2148,7 +2154,7 @@ class BasicsTest < ActiveRecord::TestCase end def test_attribute_names - assert_equal ["id", "type", "ruby_type", "firm_id", "firm_name", "name", "client_of", "rating", "account_id"], + assert_equal ["id", "type", "ruby_type", "firm_id", "firm_name", "name", "client_of", "rating", "account_id", "description"], Company.attribute_names end |