From e667a785edebfbe0fc354e071d32880e37957ff9 Mon Sep 17 00:00:00 2001 From: Lukas Matt Date: Mon, 14 Apr 2014 04:37:18 -0400 Subject: [PATCH] Assert that valid post/comment are gone --- spec/models/report_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/models/report_spec.rb b/spec/models/report_spec.rb index 8000ab0ea..c218811b9 100644 --- a/spec/models/report_spec.rb +++ b/spec/models/report_spec.rb @@ -48,6 +48,7 @@ describe Report do describe '.post' do it 'should destroy it' do @post.destroy_reported_item.should be_true + expect { Post.find(@post) }.to raise_error(ActiveRecord::RecordNotFound) end it 'should be marked' do @@ -60,9 +61,7 @@ describe Report do describe '.comment' do it 'should destroy it' do @comment.destroy_reported_item.should be_true - end - - xit 'nothing' do + expect { Comment.find(@comment) }.to raise_error(ActiveRecord::RecordNotFound) end it 'should be marked' do