We are now going to continue building features for our employer HonestBank! 😉
We are going to use the TDD methodology. This means:
- You are going to write the test BEFORE you implement the feature.
- Run the test suite and watch it fail! ✅🔥🔥
- Then, you are going to implement the feature in the appropriate model.
- Run the test suite AGAIN and watch it succeed! ✅✅✅
The client has called and we need to get a few features in before the end of the class. Our CTO has given you the following user cases to create tests in the appropriate models:
-
An user should be able to get their full name.
-
An user should be able to get a global balance based on all accounts minus fees.
-
An account should have a status of 'overdrawn' when the balance is less than 0.
-
An account should not dispense any money if its overdrawn.
BONUS It would be nice if we could add these features too:
-
An account should not dispense any money if the pin is incorrect.
-
An user should be able to list all accounts that are overdrawn.
-
An user should be able to get a global amount of fees owed to the bank.
- Send me all 4 spec files when you are done to my slack room.