[rspec-users] [ANN] rspec-http 0.9 with header matchers released

Sidu Ponnappa ckponnappa at gmail.com
Wed Aug 17 17:53:36 EDT 2011

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.


More information about the rspec-users mailing list