mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
Adds description field to custom queries (#9309).
Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22855 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1682,14 +1682,14 @@ class TimelogControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_index_with_query
|
||||
query = TimeEntryQuery.new(:project_id => 1, :name => 'Time Entry Query', :visibility => 2)
|
||||
query = TimeEntryQuery.new(:project_id => 1, :name => 'Time Entry Query', :description => 'Description for Time Entry Query', :visibility => 2)
|
||||
query.save!
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
get :index, :params => {:project_id => 'ecookbook', :query_id => query.id}
|
||||
assert_response :success
|
||||
assert_select 'h2', :text => query.name
|
||||
assert_select '#sidebar a.selected', :text => query.name
|
||||
assert_select '#sidebar a.query.selected[title=?]', query.description, :text => query.name
|
||||
end
|
||||
|
||||
def test_index_atom_feed
|
||||
|
||||
Reference in New Issue
Block a user