diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-10-23 17:31:04 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-10-23 17:31:04 +0000 |
commit | 94da4a33f5d9353d4b8228163462d5711721285f (patch) | |
tree | c48b62d5140c95995f224d78cab85f0669cf0c20 /test | |
parent | 5e17a276a8ca06b8337f0f71081267b292271a6c (diff) | |
download | redmine-94da4a33f5d9353d4b8228163462d5711721285f.tar.gz redmine-94da4a33f5d9353d4b8228163462d5711721285f.zip |
Revert r22368.
git-svn-id: https://svn.redmine.org/redmine/trunk@22369 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/wikis_controller_test.rb | 8 | ||||
-rw-r--r-- | test/unit/wiki_test.rb | 6 |
2 files changed, 2 insertions, 12 deletions
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb index ecad3a4a4..9f3f9bffb 100644 --- a/test/functional/wikis_controller_test.rb +++ b/test/functional/wikis_controller_test.rb @@ -35,17 +35,13 @@ class WikisControllerTest < Redmine::ControllerTest end end - def test_post_destroy_should_reinitialize_empty_wiki + def test_post_destroy_should_delete_wiki set_tmp_attachments_directory @request.session[:user_id] = 1 - wiki = Project.find(1).wiki post :destroy, :params => {:id => 1, :confirm => 1} assert_redirected_to :controller => 'projects', :action => 'show', :id => 'ecookbook' - - new_wiki = Project.find(1).wiki - assert_not_equal wiki, new_wiki - assert_equal "Wiki", new_wiki.start_page + assert_nil Project.find(1).wiki end def test_not_found diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb index eeb6aa2bb..da791dff4 100644 --- a/test/unit/wiki_test.rb +++ b/test/unit/wiki_test.rb @@ -35,12 +35,6 @@ class WikiTest < ActiveSupport::TestCase assert wiki.save end - def test_create_default - wiki = Wiki.create_default(Project.find(1)) - assert wiki.save - assert_equal "Wiki", wiki.start_page - end - def test_update @wiki = Wiki.find(1) @wiki.start_page = "Another start page" |