February
28th,
2013
I discovered today that I had no idea of how to fake an xhr request in an Rspec controller test. I need this cause some of my layout strategy behaves on the request.xhr? method. As expected Rspec solved the issue in a cool and elegant way.