Sha256: 91ab2bb209c570c64ea1589c144a0f9aed0f654dda8e7bbf71348fbcf51b2615
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
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 should 'return its bank' do assert_equal 'Rabobank', @transaction.bank end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.5.1 | test/test_mt940_rabobank.rb |
mt940-0.5.0 | test/test_mt940_rabobank.rb |