X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/7c494fa07a6281519209e22c44a2ee768a55e3cf..2eeaf68b8cb5ad36fdfae3eed6abc004c3f67f46:/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