Adam Stegman wrote: > On Feb 4, 9:12�am, Marnen Laibow-Koser <[email protected]> wrote: >> Are you looking for assert_recognizes ? >> >> More to the point, should you care? �Routing is UI-facing stuff, so >> (even more than elsewhere) you should be testing behavior, not URL >> options. > I'm not testing the URL, I'm testing the behavior of the application > when the user hits that URL, under different conditions. Under certain > conditions it should be 403 Forbidden, while under others it's 200 OK.
Right -- so you don't need to worry about the actual path or params. You just need to test the response. I know how to do that in Cucumber, but that uses Webrat's visit method. I'm not sure about integration tests. > >> Don't bother with integration tests. �Use Cucumber. >> >> (Also consider RSpec -- it's a lot nicer than Test::Unit.) > I'll look into those, thanks. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

