Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
RE: Regression: capybara-webkit causes apps to return error 500 on some AJAX requests #293
The problem revolves around capybara-webkit throwing 500 server errors when setting request headers on client side (JS) ajax requests
It seems that when sending a JS ajax request, when you specify a full url ('http://localhost:3000/') instead of a relative one ('/'), then add a request header, 500's are being thrown and the test fails.
It makes no difference if your url is pointing to your app (localhost), or some other site (google).
This is a big issue as if you are trawling client side some public api which requires custom header (which is exactly what my app does) - tests fail erroneously