From the course: Ruby: Testing with RSpec

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Food-finder application

Food-finder application - Ruby Tutorial

From the course: Ruby: Testing with RSpec

Start my 1-month free trial

Food-finder application

- In this chapter, I want to give a chance to apply what you've learned so far by giving you a series of coding challenges. The big picture is that you will write RSpec tests for a Ruby application. The application is almost exactly the code that we created in the course Ruby Essential Training. It's called Food Finder and it's a simple command line application that will let us list, search and catalog restaurant choices. Let's begin by running the application so we can see it in action. You can see that I've got the project here on my desktop, it's called food_finder. I'm going to just make sure that I've navigated into that directory and from there I'll run ruby init.rb and that will run the program. It launches with a brief introduction, it says "This is an interactive guide "to help you find food" and then we can have a couple of options. We have list, find, add and quit. Let's try list. We'll do list and will give us a list of the restaurants. These are restaurants that are saved…

Contents