Using tarantula to test a Rails app

Posted by Benjamin Oakes on Stack Overflow See other posts from Stack Overflow or by Benjamin Oakes
Published on 2010-04-17T15:35:44Z Indexed on 2010/04/19 13:33 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

I'm using Tarantula to test a Rails app I'm developing. It works pretty well, but I'm getting some strange 404s.

After looking into it, Tarantula is following DELETE requests (destroy actions on controllers) throughout my app when it tests. Since Tarantula gets the index action first (and seems to keep a list of unvisited URLs), it eventually tries to follow a link to a resource which it had deleted... and gets a 404. Tarantula is right that the URL doesn't exist anymore (because it deleted the resource itself). However, it's flagging it as an error -- that's hardly the behavior I would expect.

I'm basically just using the Rails scaffolding and this problem is happening. How do I prevent Tarantula doing this? (Or, is there a better way of specifying the links?)

Updates:

© Stack Overflow or respective owner

Related posts about rails

Related posts about ruby