Permalink
Browse files

Destroy Category after app_spec of draft posts

  • Loading branch information...
1 parent 3058d19 commit 456121c7ac0922499fbdb7b8db9c19cd4f3d9d8a @tomykaira committed Feb 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 spec/integration/app_spec.rb
@@ -54,7 +54,10 @@
@category_id = @post.category.id
end
- after { Post.destroy }
+ after do
+ Post.destroy
+ Category.destroy
+ end
it "the entry page should return 404" do
get '/test-draft-post'

0 comments on commit 456121c

Please sign in to comment.