Skip to content

Commit

Permalink
More test DB connection fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
isc committed Oct 19, 2023
1 parent 121ebf6 commit 4550f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_database_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ActiveRecord::Base.connection.execute 'create database "adminium-fixture"' if ENV['CI']
conn_spec = ActiveRecord::Base.configurations.find_db_config("fixture-#{test_adapter}").configuration_hash
Rails.configuration.test_database_conn_spec =
"#{conn_spec[:adapter]}://#{conn_spec[:username]}@#{conn_spec[:host]}/#{conn_spec[:database]}"
"#{conn_spec[:adapter]}://#{conn_spec[:username]}:#{conn_spec[:password]}@#{conn_spec[:host]}/#{conn_spec[:database]}"

ActiveRecord::Base.establish_connection Rails.configuration.test_database_conn_spec
ActiveRecord::Schema.verbose = false
Expand Down

0 comments on commit 4550f27

Please sign in to comment.