projects
/
selectricity
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7c9f5a
)
Correct a bunch of the testcases. Poor copy-and-paste led to description => nil where...
author
John Dong
<jdong@mit.edu>
Fri, 17 Aug 2007 20:10:25 +0000
(16:10 -0400)
committer
John Dong
<jdong@mit.edu>
Fri, 17 Aug 2007 20:10:25 +0000
(16:10 -0400)
test/unit/selectricityservice_test.rb
patch
|
blob
|
history
diff --git
a/test/unit/selectricityservice_test.rb
b/test/unit/selectricityservice_test.rb
index e3f59061021edf93eb87db2eec0260144826043a..6014c72ff7005273b258ed8b4f26de63e7ebeaed 100644
(file)
--- a/
test/unit/selectricityservice_test.rb
+++ b/
test/unit/selectricityservice_test.rb
@@
-84,11
+84,11
@@
class SelectricityServiceTest < Test::Unit::TestCase
assert_create_quickvote_fails election
end
def test_create_quickvote_candidates_nil
assert_create_quickvote_fails election
end
def test_create_quickvote_candidates_nil
- election = ElectionStruct.new :name => "foobar", :description =>
nil
, :candidate_names => nil
+ election = ElectionStruct.new :name => "foobar", :description =>
"valid"
, :candidate_names => nil
assert_create_quickvote_fails election
end
def test_create_quickvote_insufficient_candidates
assert_create_quickvote_fails election
end
def test_create_quickvote_insufficient_candidates
- election = ElectionStruct.new :name => "foobar", :description =>
nil
, :candidate_names => ["Apple"]
+ election = ElectionStruct.new :name => "foobar", :description =>
"valid"
, :candidate_names => ["Apple"]
assert_create_quickvote_fails election
end
def test_create_quickvote_candidates_whitespace
assert_create_quickvote_fails election
end
def test_create_quickvote_candidates_whitespace
@@
-96,11
+96,11
@@
class SelectricityServiceTest < Test::Unit::TestCase
assert_create_quickvote_fails election
end
def test_create_quickvote_dupe_candidates
assert_create_quickvote_fails election
end
def test_create_quickvote_dupe_candidates
- election = ElectionStruct.new :name => "foobar", :description =>
nil
, :candidate_names => ["Apple", "Apple", "Apple", "Apple"]
+ election = ElectionStruct.new :name => "foobar", :description =>
"valid"
, :candidate_names => ["Apple", "Apple", "Apple", "Apple"]
assert_create_quickvote_fails election
end
def test_create_quickvote_candidates_nil_mixed
assert_create_quickvote_fails election
end
def test_create_quickvote_candidates_nil_mixed
- election = ElectionStruct.new :name => "foobar", :description =>
nil
, :candidate_names => ["Apple", nil ]
+ election = ElectionStruct.new :name => "foobar", :description =>
"valid"
, :candidate_names => ["Apple", nil ]
assert_create_quickvote_fails election
end
def test_create_quickvote_description_htmlescape
assert_create_quickvote_fails election
end
def test_create_quickvote_description_htmlescape
Benjamin Mako Hill
||
Want to submit a patch?