summaryrefslogtreecommitdiffstats
path: root/test/functional/messages_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/messages_controller_test.rb')
-rw-r--r--test/functional/messages_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index fa3af7917..f80d0ca78 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -81,6 +81,12 @@ class MessagesControllerTest < ActionController::TestCase
assert_template 'new'
end
+ def test_get_new_with_invalid_board
+ @request.session[:user_id] = 2
+ get :new, :board_id => 99
+ assert_response 404
+ end
+
def test_post_new
@request.session[:user_id] = 2
ActionMailer::Base.deliveries.clear