@@ -55,13 +55,16 class ActivitiesControllerTest < ActionController::TestCase | |||
|
55 | 55 | end |
|
56 | 56 | |
|
57 | 57 | def test_global_index |
|
58 | @request.session[:user_id] = 1 | |
|
58 | 59 | get :index |
|
59 | 60 | assert_response :success |
|
60 | 61 | assert_template 'index' |
|
61 | 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 | 66 | assert_tag :tag => "h3", |
|
64 |
:content => /#{5 |
|
|
67 | :content => /#{d5.day}/, | |
|
65 | 68 | :sibling => { :tag => "dl", |
|
66 | 69 | :child => { :tag => "dt", |
|
67 | 70 | :attributes => { :class => /issue/ }, |
General Comments 0
You need to be logged in to leave comments.
Login now