mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
Add buttons to save/edit/delete a custom query to calendar view (#32194).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19322 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -153,6 +153,41 @@ class QueriesControllerTest < Redmine::ControllerTest
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_new_with_gantt_params
|
||||
@request.session[:user_id] = 2
|
||||
get :new, :params => { :gantt => 1 }
|
||||
assert_response :success
|
||||
|
||||
assert_select 'input[type="hidden"]#gantt', 1
|
||||
assert_select 'fieldset#options'
|
||||
assert_select 'fieldset#filters'
|
||||
assert_select 'fieldset legend', { :text => 'Sort', :count => 0 }
|
||||
assert_select 'fieldset#columns'
|
||||
end
|
||||
|
||||
def test_new_with_calendar_params
|
||||
@request.session[:user_id] = 2
|
||||
get :new, :params => { :calendar => 1 }
|
||||
assert_response :success
|
||||
|
||||
assert_select 'input[type="hidden"]#calendar', 1
|
||||
assert_select 'fieldset#options', :count => 0
|
||||
assert_select 'fieldset#filters'
|
||||
assert_select 'fieldset legend', { :text => 'Sort', :count => 0 }
|
||||
assert_select 'fieldset#columns', :count => 0
|
||||
end
|
||||
|
||||
def test_new_without_gantt_and_calendar_params
|
||||
@request.session[:user_id] = 2
|
||||
get :new
|
||||
assert_response :success
|
||||
|
||||
assert_select 'fieldset#options'
|
||||
assert_select 'fieldset#filters'
|
||||
assert_select 'fieldset legend', { :text => 'Sort' }
|
||||
assert_select 'fieldset#columns'
|
||||
end
|
||||
|
||||
def test_create_project_public_query
|
||||
@request.session[:user_id] = 2
|
||||
post :create, :params => {
|
||||
|
||||
Reference in New Issue
Block a user