From 3a2073e61b6ccce6d07d31ebd89d4c385b9a55f2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 9 Feb 2020 11:07:01 +0900 Subject: Use FrozenError instead of frozen_error_class --- spec/ruby/core/hash/compact_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/core/hash/compact_spec.rb') diff --git a/spec/ruby/core/hash/compact_spec.rb b/spec/ruby/core/hash/compact_spec.rb index ec9d4b5d79..2989afc8b7 100644 --- a/spec/ruby/core/hash/compact_spec.rb +++ b/spec/ruby/core/hash/compact_spec.rb @@ -51,8 +51,8 @@ describe "Hash#compact!" do @hash.freeze end - it "keeps pairs and raises a #{frozen_error_class}" do - ->{ @hash.compact! }.should raise_error(frozen_error_class) + it "keeps pairs and raises a FrozenError" do + ->{ @hash.compact! }.should raise_error(FrozenError) @hash.should == @initial_pairs end end -- cgit v1.2.3