diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-08 13:19:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-08 13:19:46 +0000 |
commit | 23a1ef543fcf40af6b48a5cf1f164d8e82e3d419 (patch) | |
tree | ed4ed3e4440f194b74ec742f92d6e52242f98469 /test/functional/context_menus_controller_test.rb | |
parent | 7acd04fb87229cd35c5c7a765bf1cfe9aaf69052 (diff) | |
download | redmine-23a1ef543fcf40af6b48a5cf1f164d8e82e3d419.tar.gz redmine-23a1ef543fcf40af6b48a5cf1f164d8e82e3d419.zip |
Show shared versions when editing issues from different projects with the context menu (#11345).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9961 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/context_menus_controller_test.rb')
-rw-r--r-- | test/functional/context_menus_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index d3da4cd4b..1d90ada25 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -223,6 +223,18 @@ class ContextMenusControllerTest < ActionController::TestCase :class => '' } end + def test_context_menu_should_propose_shared_versions_for_issues_from_different_projects + @request.session[:user_id] = 2 + version = Version.create!(:name => 'Shared', :sharing => 'system', :project_id => 1) + + get :issues, :ids => [1, 4] + assert_response :success + assert_template 'context_menu' + + assert_include version, assigns(:versions) + assert_tag :tag => 'a', :content => 'eCookbook - Shared' + end + def test_context_menu_issue_visibility get :issues, :ids => [1, 4] assert_response :success |