diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7dcae0e..5c79ccd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,7 +21,7 @@ end database_file = SecureRandom.hex -ActiveRecord::Base.configurations = { +ActiveRecord::Base.configurations = debug = { default_env: { url: ENV['DATABASE_URL'].presence || "sqlite3://#{Dir.tmpdir}/#{database_file}.sqlite3", properties: { allowPublicKeyRetrieval: true } # for JRuby madness @@ -32,7 +32,7 @@ } } -puts "Testing with #{ActiveRecord::Base.configurations}" +puts "Testing with #{debug}" # Configure ActiveRecord ActiveRecord::Migration.verbose = false diff --git a/test/test_helper.rb b/test/test_helper.rb index f0e1847..d5d7b7a 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,7 +8,7 @@ require 'parallel' database_file = SecureRandom.hex -ActiveRecord::Base.configurations = { +ActiveRecord::Base.configurations = debug = { default_env: { url: ENV['DATABASE_URL'].presence || "sqlite3://#{Dir.tmpdir}/#{database_file}.sqlite3", properties: { allowPublicKeyRetrieval: true } # for JRuby madness @@ -19,7 +19,7 @@ } } -puts "Testing with #{ActiveRecord::Base.configurations}" +puts "Testing with #{debug}" ENV['WITH_ADVISORY_LOCK_PREFIX'] ||= SecureRandom.hex