-
Notifications
You must be signed in to change notification settings - Fork 65
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
Mljungho
wants to merge
39
commits into
CraftAcademy:master
Choose a base branch
from
Mljungho:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installed rspec
creating atm class
Adding implementation for withdraw
insufficient funds in account methods adding preform transaction method fixing method calls inside spec-file
adding implementation code
…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
…, adding implementation in Account class
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
…e have not created an account
…nto deposit method and implementing
adding implementation
…nt funds in Atm adding implementation in Person class
…y denominator and implementation
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
… using another one added unit test to check if the account balance is insufficient adding implementation in person.rb
Adding MIT License
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[PR-ATM challenge]
PR content
In this PR me and Giovanni are submitting the ATM challenge
This PR contains
What I have learned