##// END OF EJS Templates
fix test_global_index of functional activities controller test fails around UTC 00:00...
Toshi MARUYAMA -
r9688:6c6aae07a237
parent child
Show More
@@ -55,13 +55,16 class ActivitiesControllerTest < ActionController::TestCase
55 end
55 end
56
56
57 def test_global_index
57 def test_global_index
58 @request.session[:user_id] = 1
58 get :index
59 get :index
59 assert_response :success
60 assert_response :success
60 assert_template 'index'
61 assert_template 'index'
61 assert_not_nil assigns(:events_by_day)
62 assert_not_nil assigns(:events_by_day)
62
63
64 i5 = Issue.find(5)
65 d5 = User.find(1).time_to_date(i5.created_on)
63 assert_tag :tag => "h3",
66 assert_tag :tag => "h3",
64 :content => /#{5.day.ago.to_date.day}/,
67 :content => /#{d5.day}/,
65 :sibling => { :tag => "dl",
68 :sibling => { :tag => "dl",
66 :child => { :tag => "dt",
69 :child => { :tag => "dt",
67 :attributes => { :class => /issue/ },
70 :attributes => { :class => /issue/ },
General Comments 0
You need to be logged in to leave comments. Login now