Sha256: 9d74b390dd0065eb9f1abc98aa4b60b971bbacfcd036621559eddb656680d319
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
require 'eet/client' require 'eet/message' require 'eet/sender' require 'eet/utils' require 'eet/version' module Eet class UnknownEnvironmentError < StandardError; end def self.test_playground data = { celk_trzba: '0.00', dic_popl: 'CZ00000019', id_pokl: 'p1', id_provoz: '11', porad_cis: '1' } message = Message.new(data) message.pkp = Utils.create_pkp(message, playground_certificate) message.bkp = Utils.create_bkp(message.pkp) signed_message = Utils.sign(message.to_xml, playground_certificate) sender = Sender.new response = sender.send_to_playground(signed_message) end def self.playground_certificate cert = File.join(File.dirname(__dir__), 'spec', 'fixtures', 'EET_CA1_Playground-CZ00000019.p12') OpenSSL::PKCS12.new(File.open(cert), 'eet') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eet-0.3.1 | lib/eet.rb |
eet-0.3.0 | lib/eet.rb |