aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2018-12-22 01:43:05 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2018-12-23 13:26:20 +0000
commit05781f1f9c0831d24ab2bf61421fe420967c60fa (patch)
treee6a014c893c7932953ceb02fabb858de0c4eea52 /activerecord/test/cases/associations
parentf9a5fd52540c6228103af38218e909557b01b17a (diff)
downloadrails-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/associations')
-rw-r--r--activerecord/test/cases/associations/belongs_to_associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb
index d1e4ebe86b..acafbe0b4d 100644
--- a/activerecord/test/cases/associations/belongs_to_associations_test.rb
+++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -43,8 +43,8 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
def test_assigning_belongs_to_on_destroyed_object
client = Client.create!(name: "Client")
client.destroy!
- assert_raise(frozen_error_class) { client.firm = nil }
- assert_raise(frozen_error_class) { client.firm = Firm.new(name: "Firm") }
+ assert_raise(FrozenError) { client.firm = nil }
+ assert_raise(FrozenError) { client.firm = Firm.new(name: "Firm") }
end
def test_eager_loading_wont_mutate_owner_record