diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-12 17:40:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-12 17:40:19 +0000 |
commit | beb5e6039166dadc8efccb65feb0f7ee450c9558 (patch) | |
tree | 291bd88733f83345216020cc9cc00b8ec0a145f2 /test/functional/timelog_controller_test.rb | |
parent | 7c6757c81a04a4351063ffd764a1afd53209d09d (diff) | |
download | redmine-beb5e6039166dadc8efccb65feb0f7ee450c9558.tar.gz redmine-beb5e6039166dadc8efccb65feb0f7ee450c9558.zip |
Makes spent time queries savable (#14790).
git-svn-id: http://svn.redmine.org/redmine/trunk@15639 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index c3e96793d..5ee683f4c 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -759,6 +759,16 @@ class TimelogControllerTest < ActionController::TestCase assert_equal values.sort, values end + def test_index_with_query + query = TimeEntryQuery.new(:project_id => 1, :name => 'Time Entry Query', :visibility => 2) + query.save! + @request.session[:user_id] = 2 + + get :index, :project_id => 'ecookbook', :query_id => query.id + assert_response :success + assert_select 'h2', :text => query.name + end + def test_index_atom_feed get :index, :project_id => 1, :format => 'atom' assert_response :success |