]> projects.mako.cc - rubyvote/blobdiff - test/election_test.rb
Remove whitespace from election.rb that was generating a warning
[rubyvote] / test / election_test.rb
index 2afab27475f6c38b1a7d1c01ed8ad2bb02d2f1ed..26d8b917bd548c686ef7e0f20a31128b6ff8e81f 100644 (file)
@@ -8,6 +8,7 @@ class TestElectionVote < Test::Unit::TestCase
   def test_plurality_empty
     vote_array = []
     assert_nil PluralityVote.new(vote_array).result.winners[0]
+    assert_equal(false, PluralityVote.new(vote_array).result.winner?)
   end
   
   def test_plurality
@@ -29,6 +30,7 @@ class TestElectionVote < Test::Unit::TestCase
   def test_approval_empty
     vote_array = []
     assert_nil ApprovalVote.new(vote_array).result.winners[0]
+    assert_equal(false, ApprovalVote.new(vote_array).result.winner?)
   end
   
   def test_approval

Benjamin Mako Hill || Want to submit a patch?