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
This commit is contained in:
Toshi MARUYAMA 2012-06-19 00:43:10 +00:00
parent 9c060fe33a
commit 6c6aae07a2
1 changed files with 4 additions and 1 deletions

View File

@ -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/ },