fixes build
This commit is contained in:
@@ -290,6 +290,9 @@ describe Debate do
|
||||
debate = create(:debate, :with_confidence_score, cached_votes_up: 0, cached_votes_total: 100)
|
||||
expect(debate.confidence_score).to eq(0)
|
||||
|
||||
debate = create(:debate, :with_confidence_score, cached_votes_up: 0, cached_votes_total: 0)
|
||||
expect(debate.confidence_score).to eq(1)
|
||||
|
||||
debate = create(:debate, :with_confidence_score, cached_votes_up: 75, cached_votes_total: 100)
|
||||
expect(debate.confidence_score).to eq(3750)
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ describe Proposal do
|
||||
expect(proposal.confidence_score).to eq(10000)
|
||||
|
||||
proposal = create(:proposal, :with_confidence_score, cached_votes_up: 0)
|
||||
expect(proposal.confidence_score).to eq(0)
|
||||
expect(proposal.confidence_score).to eq(1)
|
||||
|
||||
proposal = create(:proposal, :with_confidence_score, cached_votes_up: 75)
|
||||
expect(proposal.confidence_score).to eq(7500)
|
||||
|
||||
Reference in New Issue
Block a user