Re: [Rails] Rspec and restful routes

2012-02-06 Thread Peter Vandenabeele
On Mon, Feb 6, 2012 at 12:16 AM, edward michaels wrote: > Hi all, > > I'm trying to test that my users show page 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 us

[Rails] Rspec and restful routes

2012-02-06 Thread edward michaels
Hi all, I'm trying to test that my users show page 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 ge