]> projects.mako.cc - selectricity/blobdiff - lib/rubyvote/election.rb
Merge plurality fix
[selectricity] / lib / rubyvote / election.rb
index 75614e6b6d294995fb53cb7de45b5daf35884de2..66e4c2a4b410b83a2af50d12172e64c644cc531a 100644 (file)
@@ -75,7 +75,7 @@ class PluralityVote < ElectionVote
   
   protected
   def verify_vote(vote=nil)
   
   protected
   def verify_vote(vote=nil)
-    vote.instance_of?( String )
+    not vote.instance_of?( Array )
   end
 
   def tally_vote(candidate)
   end
 
   def tally_vote(candidate)

Benjamin Mako Hill || Want to submit a patch?