summaryrefslogtreecommitdiffstats
path: root/test/functional/calendars_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-09-21 13:02:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-09-21 13:02:59 +0000
commite7684657831a8b23ee08caf14e2d5678e7c0f388 (patch)
tree68e1b89bcc95396726944a0f1ca8735567d44a80 /test/functional/calendars_controller_test.rb
parente5d7ece6f2718cb7e3988586c4c598c2d4ba32c2 (diff)
downloadredmine-e7684657831a8b23ee08caf14e2d5678e7c0f388.tar.gz
redmine-e7684657831a8b23ee08caf14e2d5678e7c0f388.zip
fix source indent of CalendarsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r--test/functional/calendars_controller_test.rb38
1 files changed, 28 insertions, 10 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index f18dcb5ef..538c3ad1f 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -41,9 +41,12 @@ class CalendarsControllerTest < Redmine::ControllerTest
travel_to issues(:issues_002).start_date
with_settings :gravatar_enabled => '1' do
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:project_id => 1
}
+ )
end
assert_response :success
@@ -68,10 +71,12 @@ class CalendarsControllerTest < Redmine::ControllerTest
def test_show_should_run_custom_queries
@query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC)
-
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:query_id => @query.id
}
+ )
assert_response :success
assert_select 'h2', :text => 'Calendar Query'
end
@@ -83,10 +88,13 @@ class CalendarsControllerTest < Redmine::ControllerTest
def test_week_number_calculation
with_settings :start_of_week => 7 do
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:month => '1',
:year => '2010'
}
+ )
assert_response :success
end
@@ -103,10 +111,13 @@ class CalendarsControllerTest < Redmine::ControllerTest
end
with_settings :start_of_week => 1 do
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:month => '1',
:year => '2010'
}
+ )
assert_response :success
end
@@ -124,28 +135,35 @@ class CalendarsControllerTest < Redmine::ControllerTest
end
def test_show_custom_query_with_multiple_sort_criteria
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:query_id => 5
}
-
+ )
assert_response :success
assert_select 'h2', :text => 'Open issues by priority and tracker'
end
def test_show_custom_query_with_group_by_option
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:query_id => 6
}
-
+ )
assert_response :success
assert_select 'h2', :text => 'Open issues grouped by tracker'
end
def test_show_calendar_day_css_classes
- get :show, :params => {
+ get(
+ :show,
+ :params => {
:month => '12',
:year => '2016'
}
+ )
assert_response :success
assert_select 'tr:nth-child(2)' do