diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2018-12-22 01:43:05 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2018-12-23 13:26:20 +0000 |
commit | 05781f1f9c0831d24ab2bf61421fe420967c60fa (patch) | |
tree | e6a014c893c7932953ceb02fabb858de0c4eea52 /activerecord/test/cases/transactions_test.rb | |
parent | f9a5fd52540c6228103af38218e909557b01b17a (diff) | |
download | rails-05781f1f9c0831d24ab2bf61421fe420967c60fa.tar.gz rails-05781f1f9c0831d24ab2bf61421fe420967c60fa.tar.bz2 rails-05781f1f9c0831d24ab2bf61421fe420967c60fa.zip |
No need to handle if FrozenError is available
Rails 6 requires Ruby 2.5, which introduces `FrozenError`
https://docs.ruby-lang.org/en/2.5.0/NEWS.html
Related to #31520
Diffstat (limited to 'activerecord/test/cases/transactions_test.rb')
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index 50740054f7..45c93ca949 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -587,7 +587,7 @@ class TransactionTest < ActiveRecord::TestCase def test_rollback_when_saving_a_frozen_record topic = Topic.new(title: "test") topic.freeze - e = assert_raise(frozen_error_class) { topic.save } + e = assert_raise(FrozenError) { topic.save } # Not good enough, but we can't do much # about it since there is no specific error # for frozen objects. |