diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-10 10:48:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-10 10:48:34 +0000 |
commit | 4d4f330b0c7430224dcb298824db8830fb1f838c (patch) | |
tree | 7067966de61dcfdcb0cf8f038458fd694fe96c8f /test/functional/attachments_controller_test.rb | |
parent | 8a3c24762d91ecaea4d55734173da6b9fa7aa3ea (diff) | |
download | redmine-4d4f330b0c7430224dcb298824db8830fb1f838c.tar.gz redmine-4d4f330b0c7430224dcb298824db8830fb1f838c.zip |
Highlight menu item when viewing an attachment (#25988).
git-svn-id: http://svn.redmine.org/redmine/trunk@16652 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r-- | test/functional/attachments_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 3eba761ae..1e8f368f4 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -272,6 +272,14 @@ class AttachmentsControllerTest < Redmine::ControllerTest assert_response 403 end + def test_show_issue_attachment_should_highlight_issues_menu_item + get :show, :params => { + :id => 4 + } + assert_response :success + assert_select '#main-menu a.issues.selected' + end + def test_show_invalid_should_respond_with_404 get :show, :params => { :id => 999 |