fixed up a reviewer to reviewee association

This commit is contained in:
Mark Moser
2016-11-20 09:51:46 -06:00
parent e0f5e482be
commit 5ef7f82dbf
12 changed files with 30 additions and 16 deletions

View File

@ -28,8 +28,10 @@ module Admin
henry = candidates(:henry)
get admin_up_vote_url(henry.test_hash)
assert_difference("Candidate.find(#{henry.id}).votes.nay.count", 1) do
get admin_down_vote_url(henry.test_hash)
assert_difference("Candidate.find(#{henry.id}).votes.yea.count", -1) do
assert_difference("Candidate.find(#{henry.id}).votes.nay.count", 1) do
get admin_down_vote_url(henry.test_hash)
end
end
assert_response :success
end