Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Jan 17, 2024
1 parent f0f0cc0 commit 14afa86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,7 +32,7 @@
}
}

puts "Testing with #{ActiveRecord::Base.configurations}"
puts "Testing with #{debug}"

# Configure ActiveRecord
ActiveRecord::Migration.verbose = false
Expand Down
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,7 +19,7 @@
}
}

puts "Testing with #{ActiveRecord::Base.configurations}"
puts "Testing with #{debug}"

ENV['WITH_ADVISORY_LOCK_PREFIX'] ||= SecureRandom.hex

Expand Down

0 comments on commit 14afa86

Please sign in to comment.