diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-02-05 09:57:28 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-02-05 09:57:28 +0530 |
commit | 3bf13b065113b2cfe7a5f6096a22216492877d76 (patch) | |
tree | f9f9ac4321e5de008ecb519ae98c52e0845e16aa /guides/source | |
parent | 22af61984c9655d5c58d8a50b6d794337a045d28 (diff) | |
parent | 924f33ad96ee6475f5f61633a3114e08dae83c67 (diff) | |
download | rails-3bf13b065113b2cfe7a5f6096a22216492877d76.tar.gz rails-3bf13b065113b2cfe7a5f6096a22216492877d76.tar.bz2 rails-3bf13b065113b2cfe7a5f6096a22216492877d76.zip |
Merge pull request #23489 from y-yagi/add_missing_include_to_engine_test_example
add missing include to engine test example [ci skip]
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 |