search for: message_board

Displaying 2 results from an estimated 2 matches for "message_board".

Did you mean: messageboard
2008 Jan 04
5
Confused by the unit test results.
I''m testing the relation between two of my models: MessageThread (parent), which has_many Message (children). When I run the following test, it gives me an error: --------------------------------- # test with a valid message def test_valid_message_new thread = MessageThread.new :title => ''awesome thread'' message = thread.messages.build(:body
2008 Jan 12
0
Can't test application controller methods in functional tests?
...+ ''/../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 cases) def test_logout get :logout, nil, nil assert_response :success assert_nil session...