Rubocop fixes and rubocop todo update for those that can't be done right now
This commit is contained in:
@@ -57,24 +57,24 @@ describe Poll::PartialResult do
|
||||
expect(partial_result.amount_log).to eq("")
|
||||
expect(partial_result.author_id_log).to eq("")
|
||||
|
||||
author_A = create(:poll_officer).user
|
||||
author_B = create(:poll_officer).user
|
||||
author_C = create(:poll_officer).user
|
||||
author1 = create(:poll_officer).user
|
||||
author2 = create(:poll_officer).user
|
||||
author3 = create(:poll_officer).user
|
||||
|
||||
partial_result.amount = 33
|
||||
partial_result.author_id = author_A.id
|
||||
partial_result.author_id = author1.id
|
||||
partial_result.save!
|
||||
|
||||
partial_result.amount = 32
|
||||
partial_result.author_id = author_B.id
|
||||
partial_result.author_id = author2.id
|
||||
partial_result.save!
|
||||
|
||||
partial_result.amount = 34
|
||||
partial_result.author_id = author_C.id
|
||||
partial_result.author_id = author3.id
|
||||
partial_result.save!
|
||||
|
||||
expect(partial_result.amount_log).to eq(":33:32")
|
||||
expect(partial_result.author_id_log).to eq(":#{author_A.id}:#{author_B.id}")
|
||||
expect(partial_result.author_id_log).to eq(":#{author1.id}:#{author2.id}")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user