This commit is contained in:
Daniel Baena
2015-12-11 21:06:27 +01:00
parent 085a52ea00
commit f8e1fc70a1
2 changed files with 4 additions and 1 deletions

View File

@@ -56,6 +56,9 @@ describe Comment do
comment = create(:comment, :with_confidence_score, cached_votes_up: 10, cached_votes_total: 100)
expect(comment.confidence_score).to eq(-800)
comment = create(:comment, :with_confidence_score, cached_votes_up: 0, cached_votes_total: 0)
expect(comment.confidence_score).to eq(1)
end
describe 'actions which affect it' do