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:
parent
f4e5025aed
commit
913c8cd2e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue