diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-06-11 18:33:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-06-11 18:33:06 +0000 |
commit | 60d2a5e322cb0da01dd5e372d004aa1b65a5280d (patch) | |
tree | 8065271506ba15df4c10e2df2a9bdb7ca3b5f21d /test | |
parent | 7371077fa27cfc7442a74be5e1c53b40fa6724d8 (diff) | |
download | redmine-60d2a5e322cb0da01dd5e372d004aa1b65a5280d.tar.gz redmine-60d2a5e322cb0da01dd5e372d004aa1b65a5280d.zip |
Use #find_issues as before filter for issues context menu.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11961 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/context_menus_controller_test.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index 110fd7943..eeaa88f4b 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -219,11 +219,9 @@ class ContextMenusControllerTest < ActionController::TestCase assert_select 'a', :text => 'eCookbook - Shared' end - def test_context_menu_issue_visibility - get :issues, :ids => [1, 4] - assert_response :success - assert_template 'context_menu' - assert_equal [1], assigns(:issues).collect(&:id) + def test_context_menu_with_issue_that_is_not_visible_should_fail + get :issues, :ids => [1, 4] # issue 4 is not visible + assert_response 302 end def test_should_respond_with_404_without_ids |