Re: [rspec-users] RESTful Routes

2008-02-04 Thread Raimond Garcia
> > On 4.2.2008, at 19.16, Raimond Garcia wrote: >> Interesting Jarkko... >> >> The restful routes, seem clearer than using urls, maybe not so much >> for this case, but for very long urls, that include for example the >> title of a blog, I would rather use blog_path(@blog). >> >> Yes, I want to t

Re: [rspec-users] RESTful Routes

2008-02-04 Thread Jarkko Laine
On 4.2.2008, at 19.16, Raimond Garcia wrote: > Interesting Jarkko... > > The restful routes, seem clearer than using urls, maybe not so much > for this case, but for very long urls, that include for example the > title of a blog, I would rather use blog_path(@blog). > > Yes, I want to test the full

Re: [rspec-users] RESTful Routes

2008-02-04 Thread Raimond Garcia
>> Hi, >> >> I'm trying to test the behavior of a route with a delete method. >> >> Something like this: >> When "the admin clicks on 'delete'" do >>delete admin_blog_path(@blog) >> end >> >> which raises the following exception: >> NoMethodError: You have a nil object when you didn't expect i

Re: [rspec-users] RESTful Routes

2008-02-04 Thread Raimond Garcia
> > On 4.2.2008, at 14.54, Raimond Garcia wrote: > >> Hi, >> >> I'm trying to test the behavior of a route with a delete method. >> >> Something like this: >> When "the admin clicks on 'delete'" do >>delete admin_blog_path(@blog) >> end >> >> which raises the following exception: >> NoMethodEr

Re: [rspec-users] RESTful Routes

2008-02-04 Thread David Chelimsky
On Feb 4, 2008 10:49 AM, Raimond Garcia <[EMAIL PROTECTED]> wrote: > > On Feb 4, 2008 6:54 AM, Raimond Garcia <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to test the behavior of a route with a delete method. > > Something like this: > When "the admin clicks on 'delete'" do > delete admin_bl

Re: [rspec-users] RESTful Routes

2008-02-04 Thread Raimond Garcia
On Feb 4, 2008 6:54 AM, Raimond Garcia <[EMAIL PROTECTED]> wrote: Hi, I'm trying to test the behavior of a route with a delete method. Something like this: When "the admin clicks on 'delete'" do delete admin_blog_path(@blog) end which raises the following exception: NoMethodError: You ha

Re: [rspec-users] RESTful Routes

2008-02-04 Thread Jarkko Laine
On 4.2.2008, at 14.54, Raimond Garcia wrote: > Hi, > > I'm trying to test the behavior of a route with a delete method. > > Something like this: > When "the admin clicks on 'delete'" do > delete admin_blog_path(@blog) > end > > which raises the following exception: > NoMethodError: You have

Re: [rspec-users] RESTful Routes

2008-02-04 Thread David Chelimsky
On Feb 4, 2008 6:54 AM, Raimond Garcia <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to test the behavior of a route with a delete method. > > Something like this: > When "the admin clicks on 'delete'" do > delete admin_blog_path(@blog) >end > > which raises the following exception: > No