diff options
author | lulalala <mark@goodlife.tw> | 2018-12-26 22:35:45 +0800 |
---|---|---|
committer | lulalala <mark@goodlife.tw> | 2019-03-31 22:59:12 +0800 |
commit | 23dd7c0285fb81a675f8e18ee3be60397060655d (patch) | |
tree | e70a8cd8faf2e7ff84d7fff6663871b17e7749cd /activerecord/test/cases | |
parent | ba38b40e83302cb9da17c95086d93e5071426668 (diff) | |
download | rails-23dd7c0285fb81a675f8e18ee3be60397060655d.tar.gz rails-23dd7c0285fb81a675f8e18ee3be60397060655d.tar.bz2 rails-23dd7c0285fb81a675f8e18ee3be60397060655d.zip |
Assert deprecation
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/persistence_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/persistence_test.rb b/activerecord/test/cases/persistence_test.rb index d5057ad381..7b7aa7e9b7 100644 --- a/activerecord/test/cases/persistence_test.rb +++ b/activerecord/test/cases/persistence_test.rb @@ -183,7 +183,7 @@ class PersistenceTest < ActiveRecord::TestCase assert_not_predicate company, :valid? original_errors = company.errors client = company.becomes(Client) - assert_equal original_errors.keys, client.errors.keys + assert_equal assert_deprecated { original_errors.keys }, assert_deprecated { client.errors.keys } end def test_becomes_errors_base @@ -197,7 +197,7 @@ class PersistenceTest < ActiveRecord::TestCase admin.errors.add :token, :invalid child = admin.becomes(child_class) - assert_equal [:token], child.errors.keys + assert_equal [:token], assert_deprecated { child.errors.keys } assert_nothing_raised do child.errors.add :foo, :invalid end |