comparison test/functional/activities_controller_test.rb @ 1517:dffacf8a6908 redmine-2.5

Update to Redmine SVN revision 13367 on 2.5-stable branch
author Chris Cannam
date Tue, 09 Sep 2014 09:29:00 +0100
parents e248c7af89ec
children
comparison
equal deleted inserted replaced
1516:b450a9d58aed 1517:dffacf8a6908
49 assert_response :success 49 assert_response :success
50 assert_template 'index' 50 assert_template 'index'
51 assert_not_nil assigns(:events_by_day) 51 assert_not_nil assigns(:events_by_day)
52 52
53 assert_select 'h3', :text => /#{3.days.ago.to_date.day}/ 53 assert_select 'h3', :text => /#{3.days.ago.to_date.day}/
54 assert_select 'dl dt.issue a', :text => /Can't print recipes/ 54 assert_select 'dl dt.issue a', :text => /#{ESCAPED_UCANT} print recipes/
55 end 55 end
56 56
57 def test_global_index 57 def test_global_index
58 @request.session[:user_id] = 1 58 @request.session[:user_id] = 1
59 get :index 59 get :index
79 79
80 i1 = Issue.find(1) 80 i1 = Issue.find(1)
81 d1 = User.find(1).time_to_date(i1.created_on) 81 d1 = User.find(1).time_to_date(i1.created_on)
82 82
83 assert_select 'h3', :text => /#{d1.day}/ 83 assert_select 'h3', :text => /#{d1.day}/
84 assert_select 'dl dt.issue a', :text => /Can't print recipes/ 84 assert_select 'dl dt.issue a', :text => /#{ESCAPED_UCANT} print recipes/
85 end 85 end
86 86
87 def test_user_index_with_invalid_user_id_should_respond_404 87 def test_user_index_with_invalid_user_id_should_respond_404
88 get :index, :user_id => 299 88 get :index, :user_id => 299
89 assert_response 404 89 assert_response 404