summaryrefslogtreecommitdiffstats
path: root/test/functional/activities_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-06-19 00:43:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-06-19 00:43:10 +0000
commit6c6aae07a2371871aaa7f56721101e691804eaa5 (patch)
treed7a6971b283ddf50a0fb7e6c4046989d212022bc /test/functional/activities_controller_test.rb
parent9c060fe33a7cc8735695afbd07328ac9ee94dc0d (diff)
downloadredmine-6c6aae07a2371871aaa7f56721101e691804eaa5.tar.gz
redmine-6c6aae07a2371871aaa7f56721101e691804eaa5.zip
fix test_global_index of functional activities controller test fails around UTC 00:00
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9871 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/activities_controller_test.rb')
-rw-r--r--test/functional/activities_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb
index 126119bc1..eb2770982 100644
--- a/test/functional/activities_controller_test.rb
+++ b/test/functional/activities_controller_test.rb
@@ -55,13 +55,16 @@ class ActivitiesControllerTest < ActionController::TestCase
end
def test_global_index
+ @request.session[:user_id] = 1
get :index
assert_response :success
assert_template 'index'
assert_not_nil assigns(:events_by_day)
+ i5 = Issue.find(5)
+ d5 = User.find(1).time_to_date(i5.created_on)
assert_tag :tag => "h3",
- :content => /#{5.day.ago.to_date.day}/,
+ :content => /#{d5.day}/,
:sibling => { :tag => "dl",
:child => { :tag => "dt",
:attributes => { :class => /issue/ },