Assert that valid post/comment are gone

This commit is contained in:
Lukas Matt 2014-04-14 04:37:18 -04:00
parent f6eba7966d
commit e667a785ed

View file

@ -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