]> source.dussan.org Git - redmine.git/commitdiff
Don't clear plugins in tests (#16258).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 21 Mar 2014 01:06:18 +0000 (01:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 21 Mar 2014 01:06:18 +0000 (01:06 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12987 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/admin_controller_test.rb

index 541f86aa9687aee57f18168b8f787ed8aa051ce1..a87c92b74d53cf0eb681c99b41e64652e9985def 100644 (file)
@@ -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