From abf24a7d923961b56a92e8812cbc40234245b53b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 21 Mar 2014 01:12:11 +0000 Subject: Don't clear plugins in tests (#16258). git-svn-id: http://svn.redmine.org/redmine/trunk@12988 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/settings_controller_test.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index fc64f87dc..80d3123a0 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -148,7 +148,8 @@ class SettingsControllerTest < ActionController::TestCase assert_tag 'form', :attributes => {:action => '/settings/plugin/foo'}, :descendant => {:tag => 'input', :attributes => {:name => 'settings[sample_setting]', :value => 'Plugin setting value'}} - Redmine::Plugin.clear + ensure + Redmine::Plugin.unregister(:foo) end def test_get_invalid_plugin_settings @@ -162,7 +163,8 @@ class SettingsControllerTest < ActionController::TestCase get :plugin, :id => 'foo' assert_response 404 - Redmine::Plugin.clear + ensure + Redmine::Plugin.unregister(:foo) end def test_post_plugin_settings @@ -181,6 +183,7 @@ class SettingsControllerTest < ActionController::TestCase post :plugin, :id => 'foo', :settings => {'sample_setting' => 'Value'} assert_response 404 - Redmine::Plugin.clear + ensure + Redmine::Plugin.unregister(:foo) end end -- cgit v1.2.3