summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-12 12:30:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-12 12:30:49 +0000
commitc1a203267bc2c85f3d0a3e61f74d848c0c078842 (patch)
treec56fda06c9224438494cf0f00febf26724e7a692 /test/functional
parentdc8606973d2c0735e60fe5388b86533269e399af (diff)
downloadredmine-c1a203267bc2c85f3d0a3e61f74d848c0c078842.tar.gz
redmine-c1a203267bc2c85f3d0a3e61f74d848c0c078842.zip
fix source indent of GanttsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20338 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/gantts_controller_test.rb48
1 files changed, 27 insertions, 21 deletions
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index d89ae52db..0bd22c9ac 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -82,37 +82,39 @@ class GanttsControllerTest < Redmine::ControllerTest
end
def test_gantt_at_minimal_zoom
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:project_id => 1,
:zoom => 1
}
+ )
assert_response :success
assert_select 'input[type=hidden][name=zoom][value=?]', '1'
end
def test_gantt_at_maximal_zoom
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:project_id => 1,
:zoom => 4
}
+ )
assert_response :success
assert_select 'input[type=hidden][name=zoom][value=?]', '4'
end
def test_gantt_should_work_without_issue_due_dates
Issue.update_all("due_date = NULL")
- get :show, :params => {
- :project_id => 1
- }
+ get(:show, :params => {:project_id => 1})
assert_response :success
end
def test_gantt_should_work_without_issue_and_version_due_dates
Issue.update_all("due_date = NULL")
Version.update_all("effective_date = NULL")
- get :show, :params => {
- :project_id => 1
- }
+ get(:show, :params => {:project_id => 1})
assert_response :success
end
@@ -160,9 +162,7 @@ class GanttsControllerTest < Redmine::ControllerTest
end
def test_gantt_should_export_to_pdf_cross_project
- get :show, :params => {
- :format => 'pdf'
- }
+ get(:show, :params => {:format => 'pdf'})
assert_response :success
assert_equal 'application/pdf', @response.media_type
assert @response.body.starts_with?('%PDF')
@@ -187,21 +187,27 @@ class GanttsControllerTest < Redmine::ControllerTest
with_settings :gantt_months_limit => '40' do
# `months` parameter can be less than or equal to
# `Setting.gantt_months_limit`
- get :show, :params => {
- :project_id => 1,
- :zoom => 4,
- :months => 40
- }
+ get(
+ :show,
+ :params => {
+ :project_id => 1,
+ :zoom => 4,
+ :months => 40
+ }
+ )
assert_response :success
assert_select 'div.gantt_hdr>a', :text => /^[\d-]+$/, :count => 40
# Displays 6 months (the default value for `months`) if `months` exceeds
# gant_months_limit
- get :show, :params => {
- :project_id => 1,
- :zoom => 4,
- :months => 41
- }
+ get(
+ :show,
+ :params => {
+ :project_id => 1,
+ :zoom => 4,
+ :months => 41
+ }
+ )
assert_response :success
assert_select 'div.gantt_hdr>a', :text => /^[\d-]+$/, :count => 6
end