diff --git a/gem-development.md b/gem-development.md index 79dbf20..93a409f 100644 --- a/gem-development.md +++ b/gem-development.md @@ -86,7 +86,11 @@ When we run `bundle exec rspec spec` again, we'll be told the `Foodie::Food` con end end -We can then require this file at the top of our spec file by using this line: +To load this file, we'll need to add a require line to `lib/foodie.rb` for it: + + require 'foodie/food' + +We will also need to require the `lib/foodie.rb` at the top of `spec/spec_helper.rb`: require 'foodie' diff --git a/gem-scaffold/foodie/lib/foodie.rb b/gem-scaffold/foodie/lib/foodie.rb index 6891d34..2cae254 100644 --- a/gem-scaffold/foodie/lib/foodie.rb +++ b/gem-scaffold/foodie/lib/foodie.rb @@ -1,3 +1,5 @@ module Foodie # Your code goes here... end + +require 'foodie/food'