diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-02-05 13:09:23 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-02-05 13:09:23 +0900 |
commit | 924f33ad96ee6475f5f61633a3114e08dae83c67 (patch) | |
tree | 02ed311178e297490686c9c3db74648dad2a0ee6 /guides/source | |
parent | 3be9a34e78835a8dafc3438f60afb412613773b9 (diff) | |
download | rails-924f33ad96ee6475f5f61633a3114e08dae83c67.tar.gz rails-924f33ad96ee6475f5f61633a3114e08dae83c67.tar.bz2 rails-924f33ad96ee6475f5f61633a3114e08dae83c67.zip |
add missing include to engine test example [ci skip]
Using url helper method of engine in example code,
include `Engine.routes.url_helpers` is required to use helper method of engine.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/engines.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md index 697938434c..415def8367 100644 --- a/guides/source/engines.md +++ b/guides/source/engines.md @@ -1034,6 +1034,8 @@ typical `GET` to a controller in a controller's functional test like this: ```ruby module Blorgh class FooControllerTest < ActionDispatch::IntegrationTest + include Engine.routes.url_helpers + def test_index get foos_url ... @@ -1050,6 +1052,8 @@ in your setup code: ```ruby module Blorgh class FooControllerTest < ActionDispatch::IntegrationTest + include Engine.routes.url_helpers + setup do @routes = Engine.routes end |