File tree Expand file tree Collapse file tree 6 files changed +8
-142
lines changed
Expand file tree Collapse file tree 6 files changed +8
-142
lines changed Original file line number Diff line number Diff line change 99require 'ofx/errors'
1010require 'ofx/parser'
1111require 'ofx/parser/ofx102'
12- require 'ofx/parser/ofx103'
1312require 'ofx/parser/ofx211'
1413require 'ofx/foundation'
1514require 'ofx/balance'
Original file line number Diff line number Diff line change @@ -17,10 +17,8 @@ def initialize(resource)
1717 end
1818
1919 case headers [ "VERSION" ]
20- when /102|100/ then
20+ when /102|100|103 / then
2121 @parser = OFX102 . new ( :headers => headers , :body => body )
22- when /103/ then
23- @parser = OFX103 . new ( :headers => headers , :body => body )
2422 when /200|202|211|220/ then
2523 @parser = OFX211 . new ( :headers => headers , :body => body )
2624 else
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5454 expect ( ofx . parser ) . to eql 'ofx-102-parser'
5555 end
5656
57+ it "uses 102 parser to parse version 103 ofx files" do
58+ expect ( OFX ::Parser ::OFX102 ) . to receive ( :new ) . and_return ( 'ofx-102-parser' )
59+
60+ ofx = OFX ::Parser ::Base . new ( ofx_2_example ( '103' ) )
61+ expect ( ofx . parser ) . to eql 'ofx-102-parser'
62+ end
63+
5764 it "uses 211 parser to parse version 200 ofx files" do
5865 expect ( OFX ::Parser ::OFX211 ) . to receive ( :new ) . and_return ( 'ofx-211-parser' )
5966
You can’t perform that action at this time.
0 commit comments