@@ -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 |
|
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