search for: catscontrollertest

Displaying 1 result from an estimated 1 matches for "catscontrollertest".

2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
...ngine => '/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 success' do get :show, id: 42 assert_response :success end endend Here is an example of test return: 1) Error: MyEngine:: CatsControllerTest#test_should_get_success: ActionController::UrlGenerationError: No route match...