Skip to content

Commit

Permalink
testes para header do itau
Browse files Browse the repository at this point in the history
  • Loading branch information
riopro committed Dec 22, 2008
1 parent ab07ec0 commit 897ba04
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions spec/return/itau_spec.rb
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
require File.dirname(__FILE__) + '/../spec_helper'

describe Riopro::KillBill::Return::Itau do

before(:each) do
@fake_file_array = [
'A' * 400, # header
'B' * 400, # transaction 1
'C' * 400, # transaction 2
'D' * 400 # trailer
]
end

describe "Sample file test" do
before(:each) do
@return_file = Riopro::KillBill::Return::Itau.new('./spec/return/../../examples/sample_data/retorno_itau_teste.ret', true)
end
describe "header" do
it "should be an Itau return type" do
@return_file.header[:codigo_banco].should == "341"
@return_file.header[:nome_banco].should == "BANCO ITAU SA"
end
it "should contain the agency" do
@return_file.header[:agencia].should == "0567"
end
it "should contain the account" do
@return_file.header[:conta].should == "15346"
end
end
describe "transaction" do
it "should be an Itau return type" do
end
end
end

end

0 comments on commit 897ba04

Please sign in to comment.