]> projects.mako.cc - selectricity-live/commitdiff
Started implementing XMLRPC test cases
authorJohn Dong <jdong@mit.edu>
Fri, 17 Aug 2007 17:16:53 +0000 (13:16 -0400)
committerJohn 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]

diff --git a/test/unit/selectricityservice_test.rb b/test/unit/selectricityservice_test.rb
new file mode 100644 (file)
index 0000000..631110a
--- /dev/null
@@ -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?