Skip to content

Commit 6a085c8

Browse files
committed
Refact
1 parent 156445a commit 6a085c8

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

spec/ofx/ofx_parser_spec.rb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
require "spec_helper"
22

33
describe OFX::Parser do
4+
def ofx_2_example(version)
5+
<<~OFX_CONTENT
6+
<?xml version="1.0" encoding="US-ASCII"?>
7+
8+
<?OFX OFXHEADER="200" VERSION="#{version}" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?>"
9+
10+
<OFX>
11+
</OFX>
12+
OFX_CONTENT
13+
end
14+
415
before do
516
@ofx = OFX::Parser::Base.new("spec/fixtures/sample.ofx")
617
end
@@ -132,13 +143,4 @@
132143
expect(@ofx.headers.size).to be(9)
133144
end
134145
end
135-
136-
def ofx_2_example(version)
137-
<<-EndOfx
138-
<?xml version="1.0" encoding="US-ASCII"?>
139-
<?OFX OFXHEADER="200" VERSION="#{version}" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?>"
140-
<OFX>
141-
</OFX>
142-
EndOfx
143-
end
144146
end

0 commit comments

Comments
 (0)