projects
/
selectricity-live
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
059813b
)
Revise functional test of graph controller for retrieving an unknown id number. Curre...
author
John Dong
<jdong@mit.edu>
Tue, 21 Aug 2007 19:12:02 +0000
(15:12 -0400)
committer
John Dong
<jdong@mit.edu>
Tue, 21 Aug 2007 19:12:02 +0000
(15:12 -0400)
test/functional/graph_controller_test.rb
patch
|
blob
|
history
diff --git
a/test/functional/graph_controller_test.rb
b/test/functional/graph_controller_test.rb
index e1477079f81cd1400bd2fffa0931c90f51d767cb..e5c279008339815d1aa9835a3fdcb2f57a33025b 100644
(file)
--- a/
test/functional/graph_controller_test.rb
+++ b/
test/functional/graph_controller_test.rb
@@
-19,15
+19,15
@@
class GraphControllerTest < Test::Unit::TestCase
# TODO Replace this with your actual tests
def test_show_nonexist_votes_per_interval
# TODO Replace this with your actual tests
def test_show_nonexist_votes_per_interval
- assert_
nothing_raised
{ get :votes_per_interval, { :id => 42 } }
+ assert_
raise(ActiveRecord::RecordNotFound)
{ get :votes_per_interval, { :id => 42 } }
end
def test_show_nonexist_borda_bar
end
def test_show_nonexist_borda_bar
- assert_
nothing_raised
{ get :borda_bar, { :id => 42 } }
+ assert_
raise(ActiveRecord::RecordNotFound)
{ get :borda_bar, { :id => 42 } }
end
def test_show_nonexist_choices_positions
end
def test_show_nonexist_choices_positions
- assert_
nothing_raised
{ get :choices_positions, { :id => 42 } }
+ assert_
raise(ActiveRecord::RecordNotFound)
{ get :choices_positions, { :id => 42 } }
end
def test_show_empty_votes_per_interval
end
def test_show_empty_votes_per_interval
Benjamin Mako Hill
||
Want to submit a patch?