diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-05-31 17:32:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-05-31 17:32:34 +0000 |
commit | b834e81d7f41121fc6d9bef95ee090f8f466493e (patch) | |
tree | 61fddb6214c64e96fddd504301029bdb382ba439 /test/functional/calendars_controller_test.rb | |
parent | 1d4300b674f739d671a8be22d3ea617922f16517 (diff) | |
download | redmine-b834e81d7f41121fc6d9bef95ee090f8f466493e.tar.gz redmine-b834e81d7f41121fc6d9bef95ee090f8f466493e.zip |
Use Rails 5 syntax for functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16585 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r-- | test/functional/calendars_controller_test.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index 453e51e23..7c3a5ffcd 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -32,14 +32,18 @@ class CalendarsControllerTest < Redmine::ControllerTest :enumerations def test_show - get :show, :project_id => 1 + get :show, :params => { + :project_id => 1 + } assert_response :success end def test_show_should_run_custom_queries @query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC) - get :show, :query_id => @query.id + get :show, :params => { + :query_id => @query.id + } assert_response :success assert_select 'h2', :text => 'Calendar Query' end @@ -51,7 +55,10 @@ class CalendarsControllerTest < Redmine::ControllerTest def test_week_number_calculation with_settings :start_of_week => 7 do - get :show, :month => '1', :year => '2010' + get :show, :params => { + :month => '1', + :year => '2010' + } assert_response :success end @@ -68,7 +75,10 @@ class CalendarsControllerTest < Redmine::ControllerTest end with_settings :start_of_week => 1 do - get :show, :month => '1', :year => '2010' + get :show, :params => { + :month => '1', + :year => '2010' + } assert_response :success end |