Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

use relative path in CI to execute rspec for modules

Christophe Bliard47d9b29ba027
diff --git a/lib/plugins/load_path_helper.rb b/lib/plugins/load_path_helper.rb
index d6446b403a2..bc9bf825bfc 100644
--- a/lib/plugins/load_path_helper.rb
+++ b/lib/plugins/load_path_helper.rb
@@ -29,14 +29,13 @@
module Plugins
module LoadPathHelper
def self.spec_load_paths
- plugin_load_paths.map do |path|
- File.join(path, 'spec')
- end.keep_if { |path| File.directory?(path) }
+ plugin_load_paths.map { |path| File.join(path, 'spec') }
+ .keep_if { |path| File.directory?(path) }
end
# fetch load paths for available plugins
def self.plugin_load_paths
- Rails.application.config.plugins_to_test_paths.map(&:to_s)
+ Rails.application.config.plugins_to_test_paths.map { _1.relative_path_from(Rails.root).to_s }
end
end
end