Sha256: 2d399d24748e02b4c29a4865a37d441220792505e65194466117154fce239190
Contents?: true
Size: 541 Bytes
Versions: 15
Compression:
Stored size: 541 Bytes
Contents
# encoding: utf-8 describe Cieloz::RequisicaoCancelamento do let(:_) { subject.class } let(:dir) { File.dirname __FILE__ } let(:opts) { { root: "requisicao-cancelamento" } } let(:ec) { Cieloz::Configuracao.credenciais } it "serializes tid" do tid = 12345 subject.tid = tid assert_equal expected_xml(opts) { "<tid>#{tid}</tid>" }, subject.to_xml end it "serializes valor" do val = 123 subject.valor = val assert_equal expected_xml(opts) { "<valor>#{val}</valor>" }, subject.to_xml end end
Version data entries
15 entries across 15 versions & 1 rubygems