projects
/
selectricity-live
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c494fa
)
Started implementing XMLRPC test cases
author
John Dong
<jdong@mit.edu>
Fri, 17 Aug 2007 17:16:53 +0000
(13:16 -0400)
committer
John Dong
<jdong@mit.edu>
Fri, 17 Aug 2007 17:16:53 +0000
(13:16 -0400)
test/unit/selectricityservice_test.rb
[new file with mode: 0644]
patch
|
blob
diff --git a/test/unit/selectricityservice_test.rb
b/test/unit/selectricityservice_test.rb
new file mode 100644
(file)
index 0000000..
631110a
--- /dev/null
+++ b/
test/unit/selectricityservice_test.rb
@@ -0,0
+1,16
@@
+require File.dirname(__FILE__) + '/../test_helper'
+require 'selectricity_service_controller'
+
+class SelectricityServiceTest < Test::Unit::TestCase
+ def setup
+ @controller=SelectricityServiceController.new
+ @request=ActionController::TestRequest.new
+ @response = ActionController::TestResponse.new
+ end
+
+ def test_list_quickvotes
+ result= invoke_delegated :vote, :list_quickvotes
+ assert_instance_of Array, result
+ assert_equal result.length, 0
+ end
+end
Benjamin Mako Hill
||
Want to submit a patch?