Panasonic Youth

Testing the ApplicationController in Rails

Not sure why this test case isn’t generated right away, but here it is:

[ruby]require File.dirname(FILE) + ‘/../test_helper’ require ‘application’

Re-raise errors caught by the controller.

class ApplicationController; def rescue_action(e) raise e end; end

class ApplicationControllerTest < Test::Unit::TestCase

def setup @controller = end

your test here

def test_truth assert true end end[/ruby]