Add Universign timestamp API query
This commit is contained in:
parent
e16cb731c5
commit
dace9a53d3
6 changed files with 102 additions and 0 deletions
11
spec/lib/universign/api_spec.rb
Normal file
11
spec/lib/universign/api_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Universign::API do
|
||||
describe '.request_timestamp', vcr: { cassette_name: 'universign' } do
|
||||
subject { described_class.timestamp(digest) }
|
||||
|
||||
let(:digest) { Digest::SHA256.hexdigest("CECI EST UN HASH") }
|
||||
|
||||
it { is_expected.not_to be_nil }
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue