Skip to content
becc-mu edited this page Dec 6, 2018 · 4 revisions

Welcome to the bank_tech_test wiki!

Ruby is used to write this App and Rspec for testing, and RuboCop for linting.

Screen shots

Feature test to require statement file

  • To use irb or pry type require './lib/statement'

How to create account and debit/credit to account

  • Create account as shown in the screenshot below account = Account.new
  • Deposit account.credit(1000)
  • Withdraw account.debit(500)
  • To view statement print account.print_statement

Not happy and Errors

  • Cannot print statement print account.print_statement If created account require './lib/account' Error Uninitialized constant Account::Stateement
  • Cannot withdraw amount more than the balance error Insufficient funds
  • Amount input must be numbers error You must enter a number