Test (Universign): mock API URL constant

Addressable::URI::InvalidURIError:
 Absolute URI missing hierarchical segment: 'http://'
This commit is contained in:
François Vantomme 2021-03-08 13:56:13 +01:00 committed by Pierre de La Morinerie
parent ccfc21be03
commit b9d6c32af7

View file

@ -4,6 +4,10 @@ describe Universign::API do
let(:digest) { Digest::SHA256.hexdigest("CECI EST UN HASH") } let(:digest) { Digest::SHA256.hexdigest("CECI EST UN HASH") }
before do
stub_const("UNIVERSIGN_API_URL", "https://ws.universign.eu/tsa/post/")
end
it { is_expected.not_to be_nil } it { is_expected.not_to be_nil }
end end
end end