-
Notifications
You must be signed in to change notification settings - Fork 9
Testing
Timi Ajiboye edited this page Sep 8, 2015
·
1 revision
After setting up your parser in the banks file, now to run the tests. Navigate to the folder in your terminal and run
bundle exec rspec spec
The test do the following.
- Check that the banks array exists and is valid
- Checks that every bank parser is unique and has valid keys
- Check that each bank has valid and invalid files
- Checks that the bank responds with correct format and fails for the invalid file
- Check that the returned transaction statements are correct
The test also checks the main router to be sure it routes to the correct bank and returns the correct results as when the bank method is called correctly.