mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +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:
@@ -118,6 +118,19 @@ class GanttsControllerTest < Redmine::ControllerTest
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_show_should_run_custom_query
|
||||
query = IssueQuery.create!(:name => 'Gantt Query', :description => 'Description for Gantt Query', :visibility => IssueQuery::VISIBILITY_PUBLIC)
|
||||
get(
|
||||
:show,
|
||||
:params => {
|
||||
:query_id => query.id
|
||||
}
|
||||
)
|
||||
assert_response :success
|
||||
assert_select 'h2', :text => query.name
|
||||
assert_select '#sidebar a.query.selected[title=?]', query.description, :text => query.name
|
||||
end
|
||||
|
||||
def test_gantt_should_work_cross_project
|
||||
get :show
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user