From f42c4be21ec5ecd393e382b8760bffeb3c65452b Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 9 Aug 2018 00:27:21 +0000 Subject: [PATCH] Fix a test failure in test/functional/my_controller_test.rb that depends on time and zone (#2471). git-svn-id: http://svn.redmine.org/redmine/trunk@17465 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/my_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index 312bbd09a..e789119a9 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -208,7 +208,7 @@ class MyControllerTest < Redmine::ControllerTest assert_select 'div#block-activity' do assert_select 'h3' do - assert_select 'a[href=?]', activity_path(from: Date.today, user_id: user.id), :text => 'Activity' + assert_select 'a[href=?]', activity_path(from: Date.current, user_id: user.id), :text => 'Activity' end assert_select 'div#activity' do assert_select 'dt', 10