aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/exception/hierarchy_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/exception/hierarchy_spec.rb')
-rw-r--r--spec/ruby/core/exception/hierarchy_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/exception/hierarchy_spec.rb b/spec/ruby/core/exception/hierarchy_spec.rb
index e52811c761..6514eb1994 100644
--- a/spec/ruby/core/exception/hierarchy_spec.rb
+++ b/spec/ruby/core/exception/hierarchy_spec.rb
@@ -37,7 +37,9 @@ describe "Exception" do
FloatDomainError => nil,
},
RegexpError => nil,
- RuntimeError => nil,
+ RuntimeError => {
+ FrozenError => nil,
+ },
SystemCallError => nil,
ThreadError => nil,
TypeError => nil,
@@ -47,9 +49,7 @@ describe "Exception" do
SystemStackError => nil,
},
}
- ruby_version_is "2.5" do
- hierarchy[Exception][StandardError][RuntimeError] = {FrozenError => nil}
- end
+
traverse = -> parent_class, parent_subclass_hash {
parent_subclass_hash.each do |child_class, child_subclass_hash|
child_class.class.should == Class