Skip to content

Instantly share code, notes, and snippets.

@jeremyruppel
Created June 11, 2013 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyruppel/5760509 to your computer and use it in GitHub Desktop.
Save jeremyruppel/5760509 to your computer and use it in GitHub Desktop.
Approval tests example: Legacy code
it 'should GET index' do
xhr :get, api_resource_path( version, resource.id ), :auth_token => user.authentication_token
verify :format => :json do
last_response.body
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment