Displaying 1 result from an estimated 1 matches for "rbmyengine".
Did you mean:
myengine
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
...n error I get each times I run my
functional tests. I have a Rails Engine gem (isolated), I have a JSON
action with a route declared. But each times I use the method get in a test
I get an ActionController::UrlGenerationError exception.
Here an example of code with the problem:
# config/routes.rbMyEngine::Engine.routes.draw do
resources :cats, only: [:show], format: 'json'end
# test/dummy/config/routes.rbRails.application.routes.draw do
mount MyEngine::Engine => '/my_engine'end
# app/controllers/my_engine/cats_controller.rbmodule MyEngine
class CatsController < Applicati...