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
This commit is contained in:
Jean-Philippe Lang
2013-06-11 18:33:06 +00:00
parent 7371077fa2
commit 60d2a5e322
2 changed files with 5 additions and 9 deletions

View File

@@ -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