capybara-mechanize
capybara-mechanize copied to clipboard
Support for capturing exceptions / HTTP 401
Hello,
Is there any way to test for a HTTP 401 ? I'd like to have a test for making sure HTTP auth is in place on a remote site. Right now capybara-mechanize throws an exception and aborts.
I think this pull req is related:
Thanks
@mixandgo, if you'd like to contribute a patch in a pull request, I'm more than happy to merge. True, that doesn't sound like expected behavior though.
With my PR #54 you can do rescue Mechanize::UnauthorizedError
@aaronchi, this sounds like a good test case to add (as well as fixing the current failing test), I'd appreciate it!
Yah. I realized that there was a test after I committed this. I'll update the PR to address it.
@aaronchi - any luck on updating that PR?