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
|
|
@ -351,13 +351,10 @@ describe "A lambda expression 'lambda { ... }'" do
|
|||
lambda { lambda }.should raise_error(ArgumentError)
|
||||
end
|
||||
|
||||
ruby_version_is "2.5" do
|
||||
it "may include a rescue clause" do
|
||||
eval('lambda do raise ArgumentError; rescue ArgumentError; 7; end').should be_an_instance_of(Proc)
|
||||
end
|
||||
it "may include a rescue clause" do
|
||||
eval('lambda do raise ArgumentError; rescue ArgumentError; 7; end').should be_an_instance_of(Proc)
|
||||
end
|
||||
|
||||
|
||||
context "with an implicit block" do
|
||||
before do
|
||||
def meth; lambda; end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue