mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
git-svn-id: https://svn.redmine.org/redmine/trunk@22515 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user