search for: path_params

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

Did you mean: mach_params
2011 Dec 02
0
Testing Views with Rails 3 and Rspec2 - Can't stub request.path_params[:controller]
I am stuck to test a specific view which contains a request.path_parameters[:controller] variable as the example below follows: <%=link_to "Store", admin_stores_url, { :id => "tab-3" ,:class => (admin_stores_path == ''/'' + request.path_parameters[:controller] && ''active'')} %> The rspec view test file: describe