Sidu Ponnappa
2011-Aug-17 21:53 UTC
[rspec-users] [ANN] rspec-http 0.9 with header matchers released
Hello everyone, Someone I was pairing with this evening needed this for one of their projects, so I''ve added matchers for headers to rspec-http and pushed an updated gem. You can now do response.should have_header(''Content-Type'') response.should have_header(''Content-Type'' => ''application/json'') response.should have_header(''Content-Type'' => /json/) More info at https://github.com/c42/rspec-http As always, I''d love to hear any feedback you may have. Best, Sidu. http://c42.in http://blog.sidu.in