Adds a <<me>> option for assignee in the context menu (#1102).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8689 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-01-21 11:11:13 +00:00
parent 45e3dafa8f
commit f2a7f83c82
2 changed files with 15 additions and 0 deletions

View File

@@ -117,6 +117,17 @@ class ContextMenusControllerTest < ActionController::TestCase
:class => 'icon-del' }
end
def test_context_menu_by_assignable_user_should_include_assigned_to_me_link
@request.session[:user_id] = 2
get :issues, :ids => [1]
assert_response :success
assert_template 'context_menu'
assert_tag :tag => 'a', :content => / me /,
:attributes => { :href => '/issues/bulk_update?ids%5B%5D=1&amp;issue%5Bassigned_to_id%5D=2',
:class => '' }
end
def test_context_menu_issue_visibility
get :issues, :ids => [1, 4]
assert_response :success