mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 08:46:01 +01:00
Allows configure plugins directory path in order to change the default location in test environment (#36320).
Patch by @tohosaku. git-svn-id: https://svn.redmine.org/redmine/trunk@22507 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -23,8 +23,9 @@ class Redmine::PluginLoaderTest < ActiveSupport::TestCase
|
||||
def setup
|
||||
clear_public
|
||||
|
||||
# Change plugin directory for testing to default in config/environments/tesr.rb.
|
||||
# plugins/foo => test/fixtures/plugins/foo
|
||||
@klass = Redmine::PluginLoader
|
||||
@klass.directory = Rails.root.join('test/fixtures/plugins')
|
||||
@klass.public_directory = Rails.root.join('tmp/public/plugin_assets')
|
||||
@klass.load
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user