From 2eeaf68b8cb5ad36fdfae3eed6abc004c3f67f46 Mon Sep 17 00:00:00 2001 From: John Dong Date: Fri, 17 Aug 2007 13:16:53 -0400 Subject: [PATCH] Started implementing XMLRPC test cases --- test/unit/selectricityservice_test.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/unit/selectricityservice_test.rb 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 -- 2.30.2