Files
news.gitea.happylizard.me/bin/gems/typhoeus-1.4.1/spec/spec_helper.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

30 lines
715 B
Ruby

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "bundler"
Bundler.setup
require "typhoeus"
require "rspec"
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each { |f| require f }
RSpec.configure do |config|
config.order = :rand
config.before(:suite) do
LocalhostServer.new(TESTSERVER.new, 3001)
end
config.after do
Typhoeus::Pool.clear
Typhoeus::Expectation.clear
Typhoeus.before.clear
Typhoeus.on_complete.clear
Typhoeus.on_success.clear
Typhoeus.on_failure.clear
Typhoeus::Config.verbose = false
Typhoeus::Config.block_connection = false
Typhoeus::Config.memoize = false
end
end