From the course: Ruby: Testing with RSpec
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Food-finder application - Ruby Tutorial
From the course: Ruby: Testing with RSpec
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Food-finder application6m 8s
-
(Locked)
Challenge: NumberHelper5m 49s
-
(Locked)
Solution: NumberHelper3m 8s
-
(Locked)
Challenge: StringExtend2m 6s
-
(Locked)
Solution: StringExtend3m 48s
-
(Locked)
Challenge: Restaurant5m 25s
-
(Locked)
Solution: Restaurant6m 30s
-
(Locked)
Challenge: Guide12m 49s
-
(Locked)
Solution: Guide6m 41s
-
(Locked)
-
-
-
-