From: Jean-Philippe Lang Date: Sun, 27 Nov 2011 21:37:56 +0000 (+0000) Subject: Adds test for r7961 fix (#9672). X-Git-Tag: 1.3.0~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dfa62334840e0f661d6138426eb78c1e22704c11;p=redmine.git Adds test for r7961 fix (#9672). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7962 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index c27ed6a7b..77c477d4a 100644 --- a/test/functional/messages_controller_test.rb +++ b/test/functional/messages_controller_test.rb @@ -39,6 +39,17 @@ class MessagesControllerTest < ActionController::TestCase assert_not_nil assigns(:project) assert_not_nil assigns(:topic) end + + def test_show_should_contain_reply_field_tags_for_quoting + @request.session[:user_id] = 2 + get :show, :board_id => 1, :id => 1 + assert_response :success + + # tags required by MessagesController#quote + assert_tag 'input', :attributes => {:id => 'message_subject'} + assert_tag 'textarea', :attributes => {:id => 'message_content'} + assert_tag 'div', :attributes => {:id => 'reply'} + end def test_show_with_pagination message = Message.find(1)