]> projects.mako.cc - rubyvote/blobdiff - test/range_test.rb
Fix problem with a [nil] result being taken as having a winner; add testcases
[rubyvote] / test / range_test.rb
index 79635ecca08ce4619c1478b0ef3da67e482825cb..799ba3f84e37bb729846756f5a7895395408ba50 100644 (file)
@@ -9,6 +9,7 @@ class TestRangeVote < Test::Unit::TestCase
   def test_range_empty
     vote_array = []
     assert_nil RangeVote.new(vote_array).result.winners[0]
+    assert_equal(false, RangeVote.new(vote_array).result.winner?)
   end
   
   def test_range

Benjamin Mako Hill || Want to submit a patch?