Skip to content

Commit

Permalink
adicionando teste para nosso_numero_boleto
Browse files Browse the repository at this point in the history
  • Loading branch information
kivanio committed Sep 15, 2010
1 parent 54c171f commit 006511a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/brcobranca/itau_spec.rb
Expand Up @@ -164,6 +164,21 @@
boleto_novo.agencia_conta_boleto.should eql("0811 / 53678-8")
end

it "Montar nosso_numero_boleto" do
@valid_attributes[:conta_corrente] = "15255"
@valid_attributes[:agencia] = "0607"
boleto_novo = Brcobranca::Boleto::Itau.new(@valid_attributes)

boleto_novo.nosso_numero_boleto.should eql("175/12345678-4")

@valid_attributes[:conta_corrente] = "15255"
@valid_attributes[:agencia] = "0607"
@valid_attributes[:carteira] = "143"
boleto_novo = Brcobranca::Boleto::Itau.new(@valid_attributes)

boleto_novo.nosso_numero_boleto.should eql("143/12345678-2")
end

it "Montar nosso_numero_dv" do
@valid_attributes[:numero_documento] = "00015448"
boleto_novo = Brcobranca::Boleto::Itau.new(@valid_attributes)
Expand Down

0 comments on commit 006511a

Please sign in to comment.