Testing the ApplicationController in Rails
Not sure why this test case isn't generated right away, but here it is:
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 = ApplicationController.new
end
# your test here
def test_truth
assert true
end
end

2 Comments