Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'patch-2' of https://github.com/anildigital/guides

* 'patch-2' of https://github.com/anildigital/guides:
  Use require 'foodie' instead of require 'foodie/food'
  • Loading branch information...
commit d91055e6336f52063dd9ad3a65019afd61fd13b9 2 parents 2310164 + 66db621
Ryan Bigg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gem-development.md
4 gem-development.md
View
@@ -88,7 +88,7 @@ When we run `bundle exec rspec spec` again, we'll be told the `Foodie::Food` con
We can then require this file at the top of our spec file by using this line:
- require 'foodie/food'
+ require 'foodie'
When we run our specs with `bundle exec rspec spec` this test will pass:
@@ -264,7 +264,7 @@ The `desc` method is the "slight twist" here. The method defined after it become
In the `Foodie::CLI` class we're referencing the `Foodie::Food` class without requiring the file that defines it. Under the `require 'thor'` at the top of this file, put this line to require the file that defines `Foodie::Food`:
- require 'foodie/food'
+ require 'foodie'
When we re-run our features using `bundle exec cucumber features` our first scenario will pass:
Please sign in to comment.
Something went wrong with that request. Please try again.