Browse Source

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

git-svn-id: http://svn.redmine.org/redmine/trunk@12987 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.6.0
Jean-Philippe Lang 10 years ago
parent
commit
913c8cd2e6
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      test/functional/admin_controller_test.rb

+ 2
- 1
test/functional/admin_controller_test.rb 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

Loading…
Cancel
Save