Skip to content

Commit

Permalink
Initialized variables in first bank parser
Browse files Browse the repository at this point in the history
  • Loading branch information
fathermerry committed Aug 29, 2015
1 parent 4b08298 commit 53c2897
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/ng-bank-parser/parsers/firstbank-pdf-parser/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ module FirstbankPdfHelpers

@@pdf_reader = nil
@@raw_transactions = [[]]
@@account_name = nil
@@account_number = nil
@@last_balance = nil
@@statement_period = nil
@@from_date = nil
@@to_date = nil

def has_encryption? path
begin
Expand Down
2 changes: 1 addition & 1 deletion spec/router_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@banks = $Banks;

# Choose a random bank and parser
random_bank = @banks.sample
random_bank = @banks[0] # @banks.sample
random_parser = random_bank[:parsers].sample

bank_key = random_bank[:key]
Expand Down

0 comments on commit 53c2897

Please sign in to comment.