diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-03 09:44:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-03 09:44:40 +0900 |
commit | 18f7d3c9a647f31f11e182d900b88edf5e34ea4b (patch) | |
tree | 8eb67d6720e79022a9102ffb5c4e17155f324995 /spec/ruby/language/rescue_spec.rb | |
parent | f49a24201c8bbcf9fcb4349174e468a673d14b98 (diff) | |
download | ruby-18f7d3c9a647f31f11e182d900b88edf5e34ea4b.tar.gz |
Refined "Drop support for ruby 2.4 from ruby/spec"
By using spec/mspec/tool/remove_old_guards.rb.
Diffstat (limited to 'spec/ruby/language/rescue_spec.rb')
-rw-r--r-- | spec/ruby/language/rescue_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/language/rescue_spec.rb b/spec/ruby/language/rescue_spec.rb index aa529328a5..7fa674d009 100644 --- a/spec/ruby/language/rescue_spec.rb +++ b/spec/ruby/language/rescue_spec.rb @@ -437,12 +437,12 @@ describe "The rescue keyword" do it "allows rescue in 'do end' block" do lambda = eval <<-ruby - lambda do - raise SpecificExampleException - rescue SpecificExampleException - ScratchPad << :caught - end.call - ruby + lambda do + raise SpecificExampleException + rescue SpecificExampleException + ScratchPad << :caught + end.call + ruby ScratchPad.recorded.should == [:caught] end |