From e8469e2c5b41e59a1a204ac730e2c3ab9261b8ff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 19 Jul 2012 18:23:45 +0000 Subject: Removes RJS from MessagesController. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10053 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/messages_controller_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index 294f87035..4bf8ff90f 100644 --- a/test/functional/messages_controller_test.rb +++ b/test/functional/messages_controller_test.rb @@ -186,7 +186,10 @@ class MessagesControllerTest < ActionController::TestCase @request.session[:user_id] = 2 xhr :get, :quote, :board_id => 1, :id => 3 assert_response :success - assert_select_rjs :show, 'reply' + assert_equal 'text/javascript', response.content_type + assert_template 'quote' + assert_include 'RE: First post', response.body + assert_include '> An other reply', response.body end def test_preview_new -- cgit v1.2.3