Major commit adding about information and more before site goes live.
[selectricity] / test / functional / front_controller_test.rb
diff --git a/test/functional/front_controller_test.rb b/test/functional/front_controller_test.rb
new file mode 100644 (file)
index 0000000..2941c89
--- /dev/null
@@ -0,0 +1,19 @@
+require File.dirname(__FILE__) + '/../test_helper'
+require 'front_controller'
+
+# Re-raise errors caught by the controller.
+class FrontController; def rescue_action(e) raise e end; end
+
+class FrontControllerTest < Test::Unit::TestCase
+  def setup
+    @controller = FrontController.new
+    @request    = ActionController::TestRequest.new
+    @response   = ActionController::TestResponse.new
+  end
+
+  # Replace this with your real tests.
+  def test_index
+    get :index
+    assert_response :success
+  end
+end

Benjamin Mako Hill || Want to submit a patch?