Sha256: a2dc2e671b2230e79f7763fad3f88f40986fe0ccd111fcbb5b476fa204a86a12
Contents?: true
Size: 1.08 KB
Versions: 13
Compression:
Stored size: 1.08 KB
Contents
RSpec.describe Epics::HIA do let(:client) { Epics::Client.new( File.open(File.join( File.dirname(__FILE__), '..', 'fixtures', 'SIZBN001.key')), 'secret' , 'https://194.180.18.30/ebicsweb/ebicsweb', 'SIZBN001', 'EBIX', 'EBICS') } subject { described_class.new(client) } describe '#to_xml' do specify { expect(subject.to_xml).to be_a_valid_ebics_doc } describe 'validate against fixture' do let(:hia) { Nokogiri::XML(File.read(File.join( File.dirname(__FILE__), '..', 'fixtures', 'xml', 'hia.xml'))) } it "will match exactly" do expect(Nokogiri::XML(subject.to_xml)).to be_equivalent_to(hia) end end end describe '#order_data' do specify { expect(subject.order_data).to be_a_valid_ebics_doc } describe 'validate against fixture' do let(:hia_request_order_data) { Nokogiri::XML(File.read(File.join( File.dirname(__FILE__), '..', 'fixtures', 'xml', 'hia_request_order_data.xml'))) } it "will match exactly" do expect(Nokogiri::XML(subject.order_data)).to be_equivalent_to(hia_request_order_data) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems