diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-08 19:43:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-01 15:36:20 +0900 |
commit | 826f44834fe11f3f9c52343443a15b6c83466889 (patch) | |
tree | f2c2abed62db1c750515cd8b0fbac6442b6d4200 /spec/ruby/core/exception/hierarchy_spec.rb | |
parent | 3a2073e61b6ccce6d07d31ebd89d4c385b9a55f2 (diff) |
Drop support for ruby 2.4 from ruby/spec
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2892
Diffstat (limited to 'spec/ruby/core/exception/hierarchy_spec.rb')
-rw-r--r-- | spec/ruby/core/exception/hierarchy_spec.rb | 8 |
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 |