Defect #40856 ยป 0001-Apply-minimum-patch-from-39803-r22516.patch
| test/integration/routing/plugins_test.rb | ||
|---|---|---|
| 54 | 54 |
) |
| 55 | 55 | |
| 56 | 56 |
# Change plugin loader's directory for testing |
| 57 |
Redmine::Plugin.clear |
|
| 57 | 58 |
Redmine::PluginLoader.directory = @tmp_plugins_path |
| 59 |
Redmine::Plugin.directory = @tmp_plugins_path |
|
| 58 | 60 |
Redmine::PluginLoader.load |
| 59 | 61 |
Redmine::PluginLoader.directories.each(&:run_initializer) # to define relative controllers |
| 60 | 62 |
RedmineApp::Application.instance.routes_reloader.reload! |
| ... | ... | |
| 65 | 67 | |
| 66 | 68 |
Redmine::Plugin.clear |
| 67 | 69 |
Redmine::PluginLoader.directory = @original_plugin_dir |
| 70 |
Redmine::Plugin.directory = @original_plugin_dir |
|
| 68 | 71 |
Redmine::PluginLoader.load |
| 69 | 72 |
RedmineApp::Application.instance.routes_reloader.reload! |
| 70 | 73 |
end |