mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-07 00:05:02 -04:00
23 lines
628 B
Ruby
23 lines
628 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "simplecov" if ENV.key?("CI")
|
|
|
|
gem "minitest"
|
|
require "minitest/autorun"
|
|
|
|
if ENV.key?("PARALLEL")
|
|
require "minitest/hell"
|
|
class Minitest::Test
|
|
parallelize_me!
|
|
end
|
|
end
|
|
|
|
require "httpx"
|
|
|
|
Dir[File.join(".", "test", "support", "*.rb")].sort.each { |f| require f }
|
|
Dir[File.join(".", "test", "support", "**", "*.rb")].sort.each { |f| require f }
|
|
|
|
# Ruby 2.3 openssl configuration somehow ignores SSL_CERT_FILE env var.
|
|
# This adds it manually.
|
|
OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE.add_file(ENV["SSL_CERT_FILE"]) if RUBY_VERSION.start_with?("2.3") && ENV.key?("SSL_CERT_FILE")
|