Displaying 1 result from an estimated 1 matches for "forumcontrollertest".
2008 Jan 12
0
Can't test application controller methods in functional tests?
...the problem. The corresponding tests gives errors:
-------------------
require File.dirname(__FILE__) + ''/../test_helper''
require ''forum_controller''
# Re-raise errors caught by the controller.
class ForumController; def rescue_action(e) raise e end; end
class ForumControllerTest < Test::Unit::TestCase
#add fixtures:
fixtures :messages, :message_threads, :message_boards, :forums
def setup
@controller = ForumController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
...
# test logout (all case...