This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Rails Usage
The “doctest_require:” Directive
See the Special Directives for a full explanation of the
doctest_require:directive. To get started quickly in rails, this is probably the directive you will want to use in order to load the environment.rb file before the file gets loaded.
Example Usage
doctest_require: "../../config/environment"
By putting the above line before anything in your file (say, app/model/book.rb) you will have DocTest load the Rails environment before it runs the tests in your documentation.
You can specify rails’ environment thus:
doctest_require: ENV['RAILS_ENV'] = 'test'; "../../config/environment"







