From: John Dong Date: Fri, 17 Aug 2007 17:16:53 +0000 (-0400) Subject: Started implementing XMLRPC test cases X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/2eeaf68b8cb5ad36fdfae3eed6abc004c3f67f46 Started implementing XMLRPC test cases --- diff --git a/test/unit/selectricityservice_test.rb b/test/unit/selectricityservice_test.rb new file mode 100644 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