Upgrade to latest RSpec.
Add shortcut for setting content type.
Set JSON-encoded body when content type matches JSON.