Sha256: 35ca4913be454aec05ce99b3478dec404860a9d4b097ecf3ce03f447ff988620
Contents?: true
Size: 531 Bytes
Versions: 15
Compression:
Stored size: 531 Bytes
Contents
# encoding: utf-8 describe Cieloz::RequisicaoCaptura do let(:_) { subject.class } let(:dir) { File.dirname __FILE__ } let(:opts) { { root: "requisicao-captura" } } 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