Sha256: 082305a1bd52b1fc2ce95cf2220b914a8e13431d988493c3f439bc443c6ba808
Contents?: true
Size: 852 Bytes
Versions: 3
Compression:
Stored size: 852 Bytes
Contents
require 'helper' class TestMt940Triodos < Test::Unit::TestCase def setup file_name = File.dirname(__FILE__) + '/fixtures/triodos.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 '0390123456', @transaction.bank_account end should 'have an amount' do assert_equal -15.7, @transaction.amount end should 'have a description' do assert_equal '0000000000000 ALGEMENE TUSSENREKENING KOSTEN VAN 01-10-2010 TOT EN M ET 31-12-20100390123456', @transaction.description end should 'have a date' do assert_equal Date.new(2011,1,1), @transaction.date end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.4.1 | test/test_mt940_triodos.rb |
mt940-0.4.0 | test/test_mt940_triodos.rb |
mt940-0.3.0 | test/test_mt940_triodos.rb |