search for: admin_stores_path

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

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 "displaying the index file" do it "should have the #tab-3 selector id, for example" do controller.reque...