Fix the open-uri test to work on all versions

* open-uri no longer makes #open open URLs on MRI 2.8 dev
This commit is contained in:
Benoit Daloze
2020-08-19 16:43:17 +02:00
parent 6c10c0bae0
commit 842f7a91c4
+1 -1
View File
@@ -63,7 +63,7 @@ jobs:
- name: OpenSSL version
run: ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
- name: OpenSSL test
run: ruby -ropen-uri -e 'puts open(%{https://rubygems.org/}) { |f| f.read(1024) }'
run: ruby -ropen-uri -e 'puts URI.send(:open, "https://rubygems.org/") { |f| f.read(1024) }'
- name: C extension test
run: gem install json:2.2.0 --no-document