Created
November 27, 2008 05:38
-
-
Save lukesutton/29692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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