From: Toshi MARUYAMA Date: Tue, 19 Jun 2012 00:43:10 +0000 (+0000) Subject: fix test_global_index of functional activities controller test fails around UTC 00:00 X-Git-Tag: 2.1.0~428 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c6aae07a2371871aaa7f56721101e691804eaa5;p=redmine.git 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 --- 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/ },