-
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, Janko, Blake and Jaime #16
base: master
Are you sure you want to change the base?
Conversation
adding atm class, initializing $
Added a test on rspec that tests the withdrawal
…fix before next push
… working to pass test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, pin code is missing in the readme, mind your indentation and the extra lines in the future
end | ||
|
||
def self.deactivate(account) | ||
account.account_status = :deactivated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you guys use a class method here?
|
||
def missing_owner | ||
raise "An Account owner is required" | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure that you are using the proper indentation
|
||
when account_disabled?(account.account_status) | ||
{status: false, message: 'account is disabled', date: Date.today} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for extra lines
# This file was generated by the `rspec --init` command. Conventionally, all | ||
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. | ||
# The generated `.rspec` file contains `--require spec_helper` which will cause | ||
# this file to always be loaded, without a need to explicitly require it in any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
always clean out comments
ATM Challenge
https://github.com/JaimeCrz/atm_challenge_2019
PR Content.
In this PR we are creating an ATM.
This PR contains:
What we have learned.