Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment