mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Drop support for ruby 2.4 from ruby/spec
This commit is contained in:
parent
3a2073e61b
commit
826f44834f
Notes:
git
2020-04-01 15:36:48 +09:00
145 changed files with 2343 additions and 3347 deletions
|
@ -435,9 +435,8 @@ describe "The rescue keyword" do
|
|||
}.should raise_error(SyntaxError)
|
||||
end
|
||||
|
||||
ruby_version_is "2.5" do
|
||||
it "allows rescue in 'do end' block" do
|
||||
lambda = eval <<-ruby
|
||||
it "allows rescue in 'do end' block" do
|
||||
lambda = eval <<-ruby
|
||||
lambda do
|
||||
raise SpecificExampleException
|
||||
rescue SpecificExampleException
|
||||
|
@ -445,8 +444,7 @@ describe "The rescue keyword" do
|
|||
end.call
|
||||
ruby
|
||||
|
||||
ScratchPad.recorded.should == [:caught]
|
||||
end
|
||||
ScratchPad.recorded.should == [:caught]
|
||||
end
|
||||
|
||||
it "allows 'rescue' in method arguments" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue