summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-08-09 00:27:21 +0000
committerGo MAEDA <maeda@farend.jp>2018-08-09 00:27:21 +0000
commitf42c4be21ec5ecd393e382b8760bffeb3c65452b (patch)
tree7df967806ab1d4cb0b87e193e32c3fc807268c74 /test
parent9947003a1145d66fb5457075908d1b1493763528 (diff)
downloadredmine-f42c4be21ec5ecd393e382b8760bffeb3c65452b.tar.gz
redmine-f42c4be21ec5ecd393e382b8760bffeb3c65452b.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/my_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
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