Displaying 1 result from an estimated 1 matches for "cats_control".
Did you mean:
  call_control
  
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
...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 < ApplicationController
    def show
      render json: { hello: 'world' }
    end
  endend
# test/controllers/my_engine/cats_controller_test.rbmodule MyEngine
  class CatsControllerTest < ActionController::TestCase
   test 'should get s...