Skip to content

Instantly share code, notes, and snippets.

@evizitei
Created September 7, 2011 15:07
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 evizitei/1200814 to your computer and use it in GitHub Desktop.
Save evizitei/1200814 to your computer and use it in GitHub Desktop.
"GET /heroku/resources/id":
'renders 404 when the project is not found': ->
@response = new mocks.Response()
@response.render = (params...) ->
@rendered = true
assert.equal params[0], '404'
ProjectsController.show(new mocks.Request(app_id: 1), @response)
assert.isTrue @response.rendered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment