1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Proc without block cannot be created anymore.

This triggers warning since Ruby 2.7 and is prohibited in Ruby 3.0.
This commit is contained in:
Vít Ondruch 2021-01-21 17:11:30 +01:00
parent 5b952d69ec
commit 359c8e0d58

View file

@ -1,8 +1,8 @@
module Shindo module Shindo
class Tests class Tests
def succeeds def succeeds(&block)
test('succeeds') do test('succeeds') do
!instance_eval(&Proc.new).nil? !instance_eval(&Proc.new(&block)).nil?
end end
end end
end end