+ assert_cast_quickvote_fails "TestVote", 11, [election.candidate_ids[0]]
+ assert_cast_quickvote_fails "TestVote", 11, [1, 2]
+ assert_cast_quickvote_fails "TestVote", 11, [election.candidate_ids[0],
+ election.candidate_ids[0],
+ election.candidate_ids[1],
+ election.candidate_ids[1],
+ election.candidate_ids[2]]
+ end
+
+ def test_get_nonexistent_quickvote
+ assert_raises ArgumentError do
+ qv = invoke_delegated :vote, :get_quickvote, "asdfasdfasdf"
+ end
+ end
+
+ def test_get_voters_nonexistent_quickvote
+ assert_raises(ArgumentError) { invoke_delegated(:vote,
+ :get_quickvote_votes, "asdfasdf") }
+ end
+
+ def test_get_candidate_map_nonexistent_quickvote
+ assert_raises(ArgumentError) { invoke_delegated(:vote,
+ :get_quickvote_candidate_map,
+ "asdfasdf") }
+ end
+
+ def test_cast_mass_quickvote
+ test_create_quickvote
+ election = invoke_delegated(:vote, :get_quickvote, "TestVote")