diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-10 03:34:16 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-10 03:34:16 +0000 |
commit | e6f2e3385684ba95167a6728c9df95413a841e06 (patch) | |
tree | 98723e59b2a7f6547b8b8b8ce17af96e84aa47ca /config/environments | |
parent | ac36333e90d9ae3386829afdb3b4c1d8bac172f5 (diff) | |
download | redmine-e6f2e3385684ba95167a6728c9df95413a841e06.tar.gz redmine-e6f2e3385684ba95167a6728c9df95413a841e06.zip |
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
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index 199f1bb27..e67cea76c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -18,6 +18,9 @@ Rails.application.configure do # preloads Rails for running tests, you may have to set it to true. config.eager_load = false + # Change the plugin directory when testing to avoid clashes with real plugins. + config.redmine_plugin_directory = 'test/fixtures/plugins' + # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = { |