Sha256: 26ae30d51a436ee416ad7b6c53877cdb2d89c89c7fa41e04a392edf53e061dca
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
# encoding: utf-8 describe Cieloz::RequisicaoConsulta do let(:_) { subject.class } let(:dir) { File.dirname __FILE__ } let(:opts) { { root: "requisicao-consulta" } } let(:ec) { _::DadosEc.new Cieloz::Homologacao::Credenciais::CIELO } it "serializes tid" do tid = 12345 subject.tid = tid assert_equal expected_xml(opts) { "<tid>#{tid}</tid>" }, subject.to_xml end it "serializes dados-ec" do subject.dados_ec = ec assert_equal expected_xml(opts) { xml_for :ec, dir, binding }, subject.to_xml end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cieloz-0.0.4 | test/unit/requisicao_consulta_test.rb |
cieloz-0.0.3 | test/unit/requisicao_consulta_test.rb |
cieloz-0.0.2 | test/unit/requisicao_consulta_test.rb |