fixed up a reviewer to reviewee association
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user