summaryrefslogtreecommitdiffstats
path: root/test/functional/context_menus_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/context_menus_controller_test.rb')
-rw-r--r--test/functional/context_menus_controller_test.rb12
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