diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-06-17 08:29:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-06-17 08:29:05 +0000 |
commit | e53660b7177c94aa97030f0f64fe701acb496dc3 (patch) | |
tree | e7487e53ea8037e0f352f5743ce2ba95b2c547df /test/functional/queries_controller_test.rb | |
parent | 51eedb884be57217c588f77335439665627e94d3 (diff) | |
download | redmine-e53660b7177c94aa97030f0f64fe701acb496dc3.tar.gz redmine-e53660b7177c94aa97030f0f64fe701acb496dc3.zip |
Highlight "Spent time" in main menu when creating a time entries query.
git-svn-id: http://svn.redmine.org/redmine/trunk@17397 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/queries_controller_test.rb')
-rw-r--r-- | test/functional/queries_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb index 04fdd8ef7..93229c423 100644 --- a/test/functional/queries_controller_test.rb +++ b/test/functional/queries_controller_test.rb @@ -77,6 +77,16 @@ class QueriesControllerTest < Redmine::ControllerTest assert_select 'input[name=type][value=?]', 'TimeEntryQuery' end + def test_new_time_entry_query_should_select_spent_time_from_main_menu + @request.session[:user_id] = 2 + get :new, :params => { + :project_id => 1, + :type => 'TimeEntryQuery' + } + assert_response :success + assert_select '#main-menu a.time-entries.selected' + end + def test_new_time_entry_query_with_issue_tracking_module_disabled_should_be_allowed Project.find(1).disable_module! :issue_tracking |