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

Version Path
cieloz-0.0.21 test/unit/requisicao_captura_test.rb
cieloz-0.0.20 test/unit/requisicao_captura_test.rb
cieloz-0.0.19 test/unit/requisicao_captura_test.rb
cieloz-0.0.18 test/unit/requisicao_captura_test.rb
cieloz-0.0.17 test/unit/requisicao_captura_test.rb
cieloz-0.0.16 test/unit/requisicao_captura_test.rb
cieloz-0.0.15 test/unit/requisicao_captura_test.rb
cieloz-0.0.14 test/unit/requisicao_captura_test.rb
cieloz-0.0.13 test/unit/requisicao_captura_test.rb
cieloz-0.0.12 test/unit/requisicao_captura_test.rb
cieloz-0.0.11 test/unit/requisicao_captura_test.rb
cieloz-0.0.10 test/unit/requisicao_captura_test.rb
cieloz-0.0.9 test/unit/requisicao_captura_test.rb
cieloz-0.0.8 test/unit/requisicao_captura_test.rb
cieloz-0.0.7 test/unit/requisicao_captura_test.rb