summaryrefslogtreecommitdiffstats
path: root/test/functional/journals_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-16 16:25:04 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-16 16:25:04 +0000
commit22c978ad9433f7cbac63273fb34d3be7c7a1c78e (patch)
tree9671437183d760dd25046df46a7a2cb1d05ecc9c /test/functional/journals_controller_test.rb
parent13fe01a185c514591f093c30670cb3ae77070721 (diff)
downloadredmine-22c978ad9433f7cbac63273fb34d3be7c7a1c78e.tar.gz
redmine-22c978ad9433f7cbac63273fb34d3be7c7a1c78e.zip
Refactor: move IssuesController#reply to JournalsController
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3941 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/journals_controller_test.rb')
-rw-r--r--test/functional/journals_controller_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb
index 0a11bab3e..7d8345b28 100644
--- a/test/functional/journals_controller_test.rb
+++ b/test/functional/journals_controller_test.rb
@@ -31,6 +31,20 @@ class JournalsControllerTest < ActionController::TestCase
User.current = nil
end
+ def test_reply_to_issue
+ @request.session[:user_id] = 2
+ get :new, :id => 1
+ assert_response :success
+ assert_select_rjs :show, "update"
+ end
+
+ def test_reply_to_note
+ @request.session[:user_id] = 2
+ get :new, :id => 1, :journal_id => 2
+ assert_response :success
+ assert_select_rjs :show, "update"
+ end
+
def test_get_edit
@request.session[:user_id] = 1
xhr :get, :edit, :id => 2