Mercurial > hg > soundsoftware-site
comparison test/functional/wikis_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_template 'edit' | 49 assert_template 'edit' |
50 assert_equal 'text/javascript', response.content_type | 50 assert_equal 'text/javascript', response.content_type |
51 end | 51 end |
52 | 52 |
53 assert_include 'errorExplanation', response.body | 53 assert_include 'errorExplanation', response.body |
54 assert_include 'Start page can't be blank', response.body | 54 assert_include "Start page #{ESCAPED_CANT} be blank", response.body |
55 end | 55 end |
56 | 56 |
57 def test_update | 57 def test_update |
58 @request.session[:user_id] = 1 | 58 @request.session[:user_id] = 1 |
59 | 59 |
69 end | 69 end |
70 | 70 |
71 def test_destroy | 71 def test_destroy |
72 @request.session[:user_id] = 1 | 72 @request.session[:user_id] = 1 |
73 post :destroy, :id => 1, :confirm => 1 | 73 post :destroy, :id => 1, :confirm => 1 |
74 assert_redirected_to :controller => 'projects', :action => 'settings', :id => 'ecookbook', :tab => 'wiki' | 74 assert_redirected_to :controller => 'projects', |
75 :action => 'settings', :id => 'ecookbook', :tab => 'wiki' | |
75 assert_nil Project.find(1).wiki | 76 assert_nil Project.find(1).wiki |
76 end | 77 end |
77 | 78 |
78 def test_not_found | 79 def test_not_found |
79 @request.session[:user_id] = 1 | 80 @request.session[:user_id] = 1 |