Skip to content

Instantly share code, notes, and snippets.

@adam-e-trepanier
Created December 15, 2011 20:30
Show Gist options
  • Select an option

  • Save adam-e-trepanier/1482740 to your computer and use it in GitHub Desktop.

Select an option

Save adam-e-trepanier/1482740 to your computer and use it in GitHub Desktop.
json helper in spec_helper
def set_json_headers
request.env['HTTP_ACCEPT'] = 'application/json, text/javascript, *'
request.env['CONTENT_TYPE'] = 'application/json'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment