Skip to content
Snippets Groups Projects

WIP: More tests

Closed Marc Dequènes requested to merge more_tests into master
Files
5
@@ -54,7 +54,7 @@ Signed-off-by: Ondřej Surý <ondrej@sury.org>
-if File.exist?(database_file)
+
+seen_adapters = {}
+Dir['{config,instances/*/config}/database.yml'].select do |f|
+Dir['/usr/share/redmine/{config,instances/*/config}/database.yml'].select do |f|
+ File.readable?(f)
+end.each do |database_file|
database_config = YAML::load(ERB.new(IO.read(database_file)).result)
Loading