summaryrefslogtreecommitdiffstats
path: root/test/functional/context_menus_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-21 11:11:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-21 11:11:13 +0000
commitf2a7f83c82aabe05be6f8ebf0c19c90be6bf8f1d (patch)
treebd22fe74a21c7f9482996b904779710379e2496d /test/functional/context_menus_controller_test.rb
parent45e3dafa8fc7237ad49c6a7aa57d75e582c53d83 (diff)
downloadredmine-f2a7f83c82aabe05be6f8ebf0c19c90be6bf8f1d.tar.gz
redmine-f2a7f83c82aabe05be6f8ebf0c19c90be6bf8f1d.zip
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
Diffstat (limited to 'test/functional/context_menus_controller_test.rb')
-rw-r--r--test/functional/context_menus_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index 426ca67b5..353f31d9d 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -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