Skip to content

Commit

Permalink
Use require 'foodie' instead of require 'foodie/food'
Browse files Browse the repository at this point in the history
  • Loading branch information
anildigital committed Sep 17, 2011
1 parent 69c62ac commit 66db621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gem-development.md
Expand Up @@ -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:

Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit 66db621

Please sign in to comment.