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
This commit is contained in:
Go MAEDA
2018-08-09 00:27:21 +00:00
parent 9947003a11
commit f42c4be21e

View File

@@ -208,7 +208,7 @@ class MyControllerTest < Redmine::ControllerTest
assert_select 'div#block-activity' do assert_select 'div#block-activity' do
assert_select 'h3' 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 end
assert_select 'div#activity' do assert_select 'div#activity' do
assert_select 'dt', 10 assert_select 'dt', 10