summaryrefslogtreecommitdiffstats
path: root/test/functional/queries_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-16 21:54:33 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-16 21:54:33 +0000
commit0328b5671abc0fdfce1a97bde4897f7a72d9dcd4 (patch)
tree38e76c1130181c7297e0176803bfd19510a97940 /test/functional/queries_controller_test.rb
parent774e8b1d44ce3545e13d791ab27116081cd662a6 (diff)
downloadredmine-0328b5671abc0fdfce1a97bde4897f7a72d9dcd4.tar.gz
redmine-0328b5671abc0fdfce1a97bde4897f7a72d9dcd4.zip
Show selected columns in gantt chart (#27672).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18171 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/queries_controller_test.rb')
-rw-r--r--test/functional/queries_controller_test.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb
index 22fb7bae9..8654c5d2e 100644
--- a/test/functional/queries_controller_test.rb
+++ b/test/functional/queries_controller_test.rb
@@ -295,7 +295,8 @@ class QueriesControllerTest < Redmine::ControllerTest
:query => {
:name => "test_create_from_gantt",
:draw_relations => '1',
- :draw_progress_line => '1'
+ :draw_progress_line => '1',
+ :draw_selected_columns => '1'
}
}
assert_response 302
@@ -304,6 +305,7 @@ class QueriesControllerTest < Redmine::ControllerTest
assert_redirected_to "/issues/gantt?query_id=#{query.id}"
assert_equal true, query.draw_relations
assert_equal true, query.draw_progress_line
+ assert_equal true, query.draw_selected_columns
end
def test_create_project_query_from_gantt
@@ -321,7 +323,8 @@ class QueriesControllerTest < Redmine::ControllerTest
:query => {
:name => "test_create_from_gantt",
:draw_relations => '0',
- :draw_progress_line => '0'
+ :draw_progress_line => '0',
+ :draw_selected_columns => '0'
}
}
assert_response 302
@@ -330,6 +333,7 @@ class QueriesControllerTest < Redmine::ControllerTest
assert_redirected_to "/projects/ecookbook/issues/gantt?query_id=#{query.id}"
assert_equal false, query.draw_relations
assert_equal false, query.draw_progress_line
+ assert_equal false, query.draw_selected_columns
end
def test_create_project_public_query_should_force_private_without_manage_public_queries_permission