Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emilyjspencer/oystercard-june
https://github.com/emilyjspencer/oystercard-june
oop oop-principles rspec ruby tdd
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emilyjspencer/oystercard-june
- Owner: emilyjspencer
- Created: 2020-06-16T09:30:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T23:34:26.000Z (over 4 years ago)
- Last Synced: 2024-10-30T02:37:52.893Z (3 months ago)
- Topics: oop, oop-principles, rspec, ruby, tdd
- Language: Ruby
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Oystercard
An OOP application simulating the London Oyster Card System.
## User Stories:
```
In order to use public transport
As a customer
I want money on my cardIn order to keep using public transport
As a customer
I want to add money to my cardIn order to protect my money from theft or loss
As a customer
I want a maximum limit (of £90) on my cardIn order to pay for my journey
As a customer
I need my fare deducted from my cardIn order to get through the barriers.
As a customer
I need to touch in and out.In order to pay for my journey
As a customer
I need to have the minimum amount (£1) for a single journey.In order to pay for my journey
As a customer
When my journey is complete, I need the correct amount deducted from my cardIn order to pay for my journey
As a customer
I need to know where I've travelled fromIn order to know where I have been
As a customer
I want to see all my previous tripsIn order to know how far I have travelled
As a customer
I want to know what zone a station is inIn order to be charged correctly
As a customer
I need a penalty charge deducted if I fail to touch in or out```
## How to run:
* Clone this repo: git clone https://github.com/emilyjspencer/oystercard-june.git
* Cd into the repo
* Run **bundle install** to install the dependencies
* Open the built-in repl - irb
* Require in the relevant files
* Instantiate the objects
* Call the appropriate methods on the objects## How to run the tests:
In the command line type:
```html
rspec
```## Built with: Ruby, RSpec
## Tested with: RSpec