Test (Universign): mock API URL constant
Addressable::URI::InvalidURIError: Absolute URI missing hierarchical segment: 'http://'
This commit is contained in:
parent
ccfc21be03
commit
b9d6c32af7
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,10 @@ describe Universign::API do
|
|||
|
||||
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 }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue