Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for capturing exceptions / HTTP 401 #46

Open
chalmagean opened this issue Feb 14, 2013 · 5 comments
Open

Support for capturing exceptions / HTTP 401 #46

chalmagean opened this issue Feb 14, 2013 · 5 comments

Comments

@chalmagean
Copy link

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:

Pull Request #15

Thanks

@phillbaker
Copy link
Owner

@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.

@aaronchi
Copy link
Contributor

With my PR #54 you can do rescue Mechanize::UnauthorizedError

@phillbaker
Copy link
Owner

@aaronchi, this sounds like a good test case to add (as well as fixing the current failing test), I'd appreciate it!

@aaronchi
Copy link
Contributor

Yah. I realized that there was a test after I committed this. I'll update the PR to address it.

@phillbaker
Copy link
Owner

@aaronchi - any luck on updating that PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants