Mercurial > hg > soundsoftware-site
comparison test/functional/messages_controller_test.rb @ 1294:3e4c3460b6ca redmine-2.2
Update to Redmine SVN revision 11972 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:01:12 +0100 |
parents | 433d4f72a19b |
children | 622f24f53b42 |
comparison
equal
deleted
inserted
replaced
1115:433d4f72a19b | 1294:3e4c3460b6ca |
---|---|
79 def test_show_message_not_found | 79 def test_show_message_not_found |
80 get :show, :board_id => 1, :id => 99999 | 80 get :show, :board_id => 1, :id => 99999 |
81 assert_response 404 | 81 assert_response 404 |
82 end | 82 end |
83 | 83 |
84 def test_show_message_from_invalid_board_should_respond_with_404 | |
85 get :show, :board_id => 999, :id => 1 | |
86 assert_response 404 | |
87 end | |
88 | |
84 def test_get_new | 89 def test_get_new |
85 @request.session[:user_id] = 2 | 90 @request.session[:user_id] = 2 |
86 get :new, :board_id => 1 | 91 get :new, :board_id => 1 |
87 assert_response :success | 92 assert_response :success |
88 assert_template 'new' | 93 assert_template 'new' |