Sha256: 009c92e0362061063a5b9a6f8481fbe0916f809c4d1f96627553095117d17a47
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
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 '001234567', @transaction.bank_account end should 'have an amount' do assert_equal -25.03, @transaction.amount 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 should 'have a description' do assert_equal 'EJ46GREENP100610T1456 CLIEOP TMG GPHONGKONG AMSTERDAM :62F:C100723EUR3,47', @transactions.last.description end should 'return the contra_account' do assert_equal '123456789', @transactions.last.contra_account end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.6.5 | test/mt940_ing_test.rb |
mt940-0.6.4 | test/test_mt940_ing.rb |
mt940-0.6.3 | test/test_mt940_ing.rb |