summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-05 13:18:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-05 13:18:55 +0000
commit74cd72a2d96941c3ab283f547fb35f6b02333f92 (patch)
treea6d983a62fc8894cf47d88286f94363190ae44eb /test/functional
parenta5675463352040ae8e63b0ba6c20a27dbfefc0d3 (diff)
downloadredmine-74cd72a2d96941c3ab283f547fb35f6b02333f92.tar.gz
redmine-74cd72a2d96941c3ab283f547fb35f6b02333f92.zip
Fixed that preview doesn't show notes when issue project is changed (#17959).
git-svn-id: http://svn.redmine.org/redmine/trunk@13428 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/previews_controller_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index 976af94e3..abbbd7afa 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -62,6 +62,14 @@ class PreviewsControllerTest < ActionController::TestCase
assert_select 'a.attachment', :text => 'foo.bar'
end
+ def test_preview_issue_with_project_changed
+ @request.session[:user_id] = 2
+ post :issue, :project_id => '1', :id => 1, :issue => {:notes => 'notes', :project_id => 2}
+ assert_response :success
+ assert_not_nil assigns(:issue)
+ assert_not_nil assigns(:notes)
+ end
+
def test_preview_new_news
get :news, :project_id => 1,
:news => {:title => '',