I have setup Webrat according to https://github.com/brynary/webrat
But when I want to:
"vist 'new'
then the "fill_in" method doesn't work.
This is because response.body has the contents:
"<html><body>You are being <a href=\"https://test.host/login\">redirected</a>.</body></html>"
Can anyone tell why?
The 'new' page requires authentication, so you're being redirected to the login page. So you should either: