Skip to content

Instantly share code, notes, and snippets.

@mytrile
Created January 7, 2009 16:10
Show Gist options
  • Select an option

  • Save mytrile/44314 to your computer and use it in GitHub Desktop.

Select an option

Save mytrile/44314 to your computer and use it in GitHub Desktop.
def show
@category ||= Category.find(params[:id])
end
context "on GET to :show " do
setup do
get :show
end
should_assign_to :category
should_respond_with :success
should_render_template :show
should_not_set_the_flash
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment