summaryrefslogtreecommitdiff
path: root/spec/ruby/core/hash/compact_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/hash/compact_spec.rb')
-rw-r--r--spec/ruby/core/hash/compact_spec.rb4
1 files changed, 2 insertions, 2 deletions
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