[rspec-users] RESTful Routes
dchelimsky at gmail.com
Mon Feb 4 08:10:42 EST 2008
On Feb 4, 2008 6:54 AM, Raimond Garcia <voodoorai2000 at gmail.com> wrote:
> 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)
> which raises the following exception:
> NoMethodError: You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.env
Can you show the rest of the backtrace?
> If I change the delete, for a get or a post it works like a charm.
> What am I missing here?
> Thanks in advance!
> Raimond Garcia
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users