Files
news.gitea.happylizard.me/bin/gems/typhoeus-1.4.1/spec/typhoeus/hydra_spec.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

23 lines
522 B
Ruby

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Typhoeus::Hydra do
let(:base_url) { "localhost:3001" }
let(:options) { {} }
let(:hydra) { Typhoeus::Hydra.new(options) }
describe "#new" do
let(:options) { {:pipeling => true} }
it "passes options to multi" do
expect(Ethon::Multi).to receive(:new).with(options)
hydra
end
end
describe "#hydra" do
it "returns a hydra" do
expect(Typhoeus::Hydra.hydra).to be_a(Typhoeus::Hydra)
end
end
end