Scully87 / VAAST

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VAAST

#####Version 1 - FAAST uses Chicago-style testing (dealing with instantiated objects throughout).

#####This is a Repository for Version 2 of FAAST which uses London-style testing (dealing doubles/mocks throughout).

###Develop a program for the new VAAST tube system (Fast and Accessible Super Tube). This is our Week 1 weekend challenge at Makers Academy

#####The FAAST system will cater for the following:

  • There will be a number of trains inside the system
  • Trains will travel from station to station
  • Inside of a station, when the train stops, passengers will alight and enter the carriages of the train.
  • A passenger will touch in at the station and touch out at the destination station
  • Each carriage of a train can hold up to 40 passengers
  • Each train is made of a number of carriages

#####BONUS:

  • Add a charging system where the passengers can only touch in a station (and access the train) if their account has more than 2 GBP.

#####OBJECTS:

  • Passenger
  • Carriage
  • Train
  • Station

#####INITIAL PROCESS:

  • Passenger touches in at station
  • Passenger boards carriage
  • Train moves carriage from station to station
  • Passenger leaves carriage
  • Passenger touches out at station

How to use

Clone the repository:

$ git clone git@github.com:scully87/VAAST.git

Change into the directory:

$ cd VAAST

Open in IRB:

$ irb
  > require './runner'

####To Do List

  • Class/tests for Passenger
  • Class/tests for Station
  • Class/tests for Carriage
  • Class/tests for Train
  • Use of London Style testing for RSpec (doubles)
Technologies used:
  • Ruby
  • Rspec

About


Languages

Language:Ruby 100.0%