diff options
author | Go MAEDA <maeda@farend.jp> | 2020-04-04 00:43:28 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-04-04 00:43:28 +0000 |
commit | 6e781f6479740857f26497cbc786c7383924abd5 (patch) | |
tree | 32ccceb7474c64d0ff10f3a26116c709459eea50 /test/functional/wiki_controller_test.rb | |
parent | a24834fa77bc5bb932f70aab4755d764dacc979c (diff) | |
download | redmine-6e781f6479740857f26497cbc786c7383924abd5.tar.gz redmine-6e781f6479740857f26497cbc786c7383924abd5.zip |
Fix that "Successful deletion" notice is not displayed after deleting some types of content (#33116).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19641 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index d5dfe1247..b75bdaae8 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -914,6 +914,7 @@ class WikiControllerTest < Redmine::ControllerTest @request.session[:user_id] = 2 delete :destroy, :params => {:project_id => 1, :id => 'Child_2'} assert_redirected_to :action => 'index', :project_id => 'ecookbook' + assert_equal 'Successful deletion.', flash[:notice] end def test_destroy_parent_should_ask_confirmation @@ -935,6 +936,7 @@ class WikiControllerTest < Redmine::ControllerTest delete :destroy, :params => {:project_id => 1, :id => 'Another_page', :todo => 'nullify'} end assert_redirected_to :action => 'index', :project_id => 'ecookbook' + assert_equal 'Successful deletion.', flash[:notice] assert_nil WikiPage.find_by_id(2) end @@ -944,6 +946,7 @@ class WikiControllerTest < Redmine::ControllerTest delete :destroy, :params => {:project_id => 1, :id => 'Another_page', :todo => 'destroy'} end assert_redirected_to :action => 'index', :project_id => 'ecookbook' + assert_equal 'Successful deletion.', flash[:notice] assert_nil WikiPage.find_by_id(2) assert_nil WikiPage.find_by_id(5) end @@ -954,6 +957,7 @@ class WikiControllerTest < Redmine::ControllerTest delete :destroy, :params => {:project_id => 1, :id => 'Another_page', :todo => 'reassign', :reassign_to_id => 1} end assert_redirected_to :action => 'index', :project_id => 'ecookbook' + assert_equal 'Successful deletion.', flash[:notice] assert_nil WikiPage.find_by_id(2) assert_equal WikiPage.find(1), WikiPage.find_by_id(5).parent end |