mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 20:41:27 +01:00
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:
@@ -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&issue%5Bassigned_to_id%5D=2',
|
||||
:class => '' }
|
||||
end
|
||||
|
||||
def test_context_menu_issue_visibility
|
||||
get :issues, :ids => [1, 4]
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user