Variety of improvements and additions:
[selectricity] / test / functional / voter_controller_test.rb
diff --git a/test/functional/voter_controller_test.rb b/test/functional/voter_controller_test.rb
new file mode 100644 (file)
index 0000000..992476b
--- /dev/null
@@ -0,0 +1,18 @@
+require File.dirname(__FILE__) + '/../test_helper'
+require 'voter_controller'
+
+# Re-raise errors caught by the controller.
+class VoterController; def rescue_action(e) raise e end; end
+
+class VoterControllerTest < Test::Unit::TestCase
+  def setup
+    @controller = VoterController.new
+    @request    = ActionController::TestRequest.new
+    @response   = ActionController::TestResponse.new
+  end
+
+  # Replace this with your real tests.
+  def test_truth
+    assert true
+  end
+end

Benjamin Mako Hill || Want to submit a patch?