Sha256: 26970d55150204285c7a833983a548a75955d0c1af8eaee3d5c7aa9dc870ff34
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 Bytes
Contents
require 'helper' class TestMt940Ing < Test::Unit::TestCase def setup file_name = File.dirname(__FILE__) + '/fixtures/ing.txt' @transactions = MT940::Base.transactions(file_name) @transaction = @transactions.first end should 'have the correct number of transactions' do assert_equal 6, @transactions.size end context 'Transaction' do should 'have a bank_account' do assert_equal '0001234567', @transaction.bank_account end should 'have an amount' do assert_equal -25.03, @transaction.amount end should 'have a description' do assert_equal 'RC AFREKENING BETALINGSVERKEER BETREFT REKENING 4715589 PERIODE: 01-10-2010 / 31-12-2010 ING Bank N.V. tarifering ING', @transaction.description end should 'have a date' do assert_equal Date.new(2010,7,22), @transaction.date end should 'return its bank' do assert_equal 'Ing', @transaction.bank end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.5.1 | test/test_mt940_ing.rb |
mt940-0.5.0 | test/test_mt940_ing.rb |