Reverts r22507, r22508 and r22510 (#36320, #39803).

git-svn-id: https://svn.redmine.org/redmine/trunk@22515 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2023-12-12 16:26:34 +00:00
parent 4cff8b309a
commit a2c90c462f
6 changed files with 6 additions and 17 deletions

View File

@@ -22,11 +22,14 @@ require_relative '../../../test_helper'
class Redmine::PluginTest < ActiveSupport::TestCase
def setup
@klass = Redmine::Plugin
# Change plugin directory for testing to default in config/environments/test.rb.
# Change plugin directory for testing to default
# plugins/foo => test/fixtures/plugins/foo
@klass.directory = Rails.root.join('test/fixtures/plugins')
# In case some real plugins are installed
@klass.clear
# Change plugin loader's directory for testing
Redmine::PluginLoader.directory = @klass.directory
Redmine::PluginLoader.setup
end