Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. it "should destroy the record" do
  2. page_type = PageType.generate
  3. controller = dispatch_to(PageTypes, :destroy, :id => page_type.id)
  4.  
  5. @response.should redirect_to("/content/page_types")
  6. PageTypes.get(page_type.id).should be_nil
  7. end
Add Comment
Please, Sign In to add comment