Skip to content

Instantly share code, notes, and snippets.

@lukesutton
Created November 27, 2008 05:38
Show Gist options
  • Save lukesutton/29692 to your computer and use it in GitHub Desktop.
Save lukesutton/29692 to your computer and use it in GitHub Desktop.
it "should destroy the record" do
page_type = PageType.generate
controller = dispatch_to(PageTypes, :destroy, :id => page_type.id)
@response.should redirect_to("/content/page_types")
PageTypes.get(page_type.id).should be_nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment