1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/helpers/succeeds_helper.rb
Vít Ondruch 359c8e0d58 Proc without block cannot be created anymore.
This triggers warning since Ruby 2.7 and is prohibited in Ruby 3.0.
2021-01-21 17:12:11 +01:00

9 lines
154 B
Ruby

module Shindo
class Tests
def succeeds(&block)
test('succeeds') do
!instance_eval(&Proc.new(&block)).nil?
end
end
end
end