search for: user_show_path

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

2012 Feb 05
4
Rspec and restful routes
...renders. The resource has the route /users/:id How would I code that for an Rspec test? So far I''ve tried these four ways: it "should have a users show path" do get user_path(:action => ''show'') end it "should have a users show path" do get user_show_path end it "should have a users show path" do get user_path(:id => ''1'') end it "should have a users show path" do get ''/users/1'' end But I keep getting a RoutingError from Rspec even though it renders ok when I just go to the page. So h...