summaryrefslogtreecommitdiffstats
path: root/test/functional/context_menus_controller_test.rb
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-10-07 05:11:28 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-10-07 05:11:28 +0000
commitb255b7760ac6a3389c3cd6c77b259679eb0401a7 (patch)
treeffc3c377f1e1cae82105d608de972aefb1d35ea4 /test/functional/context_menus_controller_test.rb
parent2ecca7e4df96cba3fe5ab75997ca179cd62968f8 (diff)
downloadredmine-b255b7760ac6a3389c3cd6c77b259679eb0401a7.tar.gz
redmine-b255b7760ac6a3389c3cd6c77b259679eb0401a7.zip
Added ability to delete issues from different projects through contextual menu (#5332)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4236 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/context_menus_controller_test.rb')
-rw-r--r--test/functional/context_menus_controller_test.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index 0ebae695a..0202cf2c7 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -79,14 +79,15 @@ class ContextMenusControllerTest < ActionController::TestCase
:class => 'icon-del' }
end
- def test_context_menu_multiple_issues_of_different_project
+ def test_context_menu_multiple_issues_of_different_projects
@request.session[:user_id] = 2
- get :issues, :ids => [1, 2, 4]
+ get :issues, :ids => [1, 2, 6]
assert_response :success
assert_template 'context_menu'
+ ids = "ids%5B%5D=1&amp;ids%5B%5D=2&amp;ids%5B%5D=6"
assert_tag :tag => 'a', :content => 'Delete',
- :attributes => { :href => '#',
- :class => 'icon-del disabled' }
+ :attributes => { :href => "/issues/destroy?#{ids}",
+ :class => 'icon-del' }
end
end