summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-03-21 01:06:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-03-21 01:06:18 +0000
commit913c8cd2e649564c07a81615b293a41ec7524136 (patch)
treec730b09381fb9d2a2de286ac43a6bb572a0f25b8 /test
parentf4e5025aed8028f8604629ede459a2a317dee676 (diff)
downloadredmine-913c8cd2e649564c07a81615b293a41ec7524136.tar.gz
redmine-913c8cd2e649564c07a81615b293a41ec7524136.zip
Don't clear plugins in tests (#16258).
git-svn-id: http://svn.redmine.org/redmine/trunk@12987 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/admin_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
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