Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATM_challenge_nov_2021 #33

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open

Conversation

Mljungho
Copy link

[PR-ATM challenge]

PR content
In this PR me and Giovanni are submitting the ATM challenge

This PR contains

  • Added testing scenarios for ATM and basic logic response depending on situation, and implementation.
  • Added person, atm & account class.
  • Added person, atm & account specs.

What I have learned

  • Make better use of .class function & methods.
  • Further improve on the spec functionality
  • How to utilize double instances & instance variables between classes.
  • Process of pair programming & submitting

Mljungho and others added 30 commits November 8, 2021 16:55
Installed rspec
Adding implementation for withdraw
insufficient funds in account methods
adding preform transaction method
fixing method calls inside spec-file
…pin?' condition in atm.rb file.

Added pincode '1234' for test argument -> 'atm_spec.rb'. added pincode for every condition and test passes.
Added condition for incorrect pin and povides correct message.
Removed all comments on 'spec_helper.rb'
…ator 5, 10, 20$ bills. Added logic to handle these denominations.
unit test to check pin_code length, expiery date, account status initialized :active, deactivate method
testing Person name initialization, error raise if no name defined, cash attribute initialized, account attribute, account creation method
creating Person class with all implementation for the mentioned tests
minor code cleaning
…nt funds in Atm

adding implementation in Person class
adding unit test to raise an error if the withdraw method has been called without a pin in the person_spec.rb
test removed - 'is expected to reduce funds on withdraw'
Added headlines:
The Code
Dependencies
Setup
Instructions
Updates/Improvment Plans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants