From: Jean-Philippe Lang Date: Fri, 21 Mar 2014 01:06:18 +0000 (+0000) Subject: Don't clear plugins in tests (#16258). X-Git-Tag: 2.6.0~262 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=913c8cd2e649564c07a81615b293a41ec7524136;p=redmine.git Don't clear plugins in tests (#16258). git-svn-id: http://svn.redmine.org/redmine/trunk@12987 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb index 541f86aa9..a87c92b74 100644 --- a/test/functional/admin_controller_test.rb +++ b/test/functional/admin_controller_test.rb @@ -103,11 +103,12 @@ class AdminControllerTest < ActionController::TestCase end def test_no_plugins - Redmine::Plugin.clear + Redmine::Plugin.stubs(:registered_plugins).returns({}) get :plugins assert_response :success assert_template 'plugins' + assert_equal [], assigns(:plugins) end def test_plugins