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
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users