search for: test_should_get_success

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

2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
...s/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 matches {:action=>"show", :controller=>"my_engine/cats", :id=>"42"} Anyone have an idea to solve this problem? Thanks. ----- Geoffrey Roguelon -- You received this message because you are subscribed to the...