Skip to content

Instantly share code, notes, and snippets.

@prashuchaudhary
Last active September 1, 2017 19:01
Show Gist options
  • Select an option

  • Save prashuchaudhary/520025d04a303e2ef6abf5e22bd002a6 to your computer and use it in GitHub Desktop.

Select an option

Save prashuchaudhary/520025d04a303e2ef6abf5e22bd002a6 to your computer and use it in GitHub Desktop.
Parking Lot

Note : I am using rake to run the app and it prints a new line before giving the output. Please take this into account.

Dependencies for running parking lot program and Test Cases (Rspecs)

  • ruby (2.0.0)
  • rake (11.2.2)
  • rspec (3.5.0)
  • rspec-core (3.5.4)
  • rspec-expectations (3.5.0)
  • rspec-instafail (1.0.0)
  • rspec-support (3.5.0)

Please install before running program.

Solution - How to run the parking lot app ?

cd go_parking

Interactive Mode Command : rake parking_lot:interactive_input

File Mode Command : rake parking_lot:file_input["sample_commands.txt"] or rake parking_lot:file_input["/path/file"]

How To run test cases ?

Running Test Command : rspec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment