Sha256: b70d0b8f5b60b68937fc1643f6b212408296f6ad8f8c75728448f2fdc658c80c
Contents?: true
Size: 1020 Bytes
Versions: 3
Compression:
Stored size: 1020 Bytes
Contents
require 'helper' class TestMt940Rabobank < Test::Unit::TestCase def setup file_name = File.dirname(__FILE__) + '/fixtures/rabobank.txt' @transactions = MT940::Base.transactions(file_name) @transaction = @transactions.first end should 'have the correct number of transactions' do assert_equal 2, @transactions.size end context 'Transaction' do should 'have a bank_account' do assert_equal '129199348', @transaction.bank_account end should 'have a contra_account' do assert_equal 'P005675159', @transaction.contra_account end should 'have an amount' do assert_equal -77.35, @transaction.amount end should 'have a contra_account_owner' do assert_equal 'Uitgeverij De Druif', @transaction.contra_account_owner end should 'have a description' do assert_equal 'Factuurnummer 234578', @transaction.description end should 'have a date' do assert_equal Date.new(2011,6,15), @transaction.date end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.4.1 | test/test_mt940_rabobank.rb |
mt940-0.4.0 | test/test_mt940_rabobank.rb |
mt940-0.3.0 | test/test_mt940_rabobank.rb |