Don't clear plugins in tests (#16258).

git-svn-id: http://svn.redmine.org/redmine/trunk@12987 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-03-21 01:06:18 +00:00
parent f4e5025aed
commit 913c8cd2e6
1 changed files with 2 additions and 1 deletions

View 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