Skip to content

Commit

Permalink
update fetch of ENV variables
Browse files Browse the repository at this point in the history
  • Loading branch information
adlamas committed Oct 27, 2023
1 parent 174c6ad commit cca3a17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
elsif ENV['ADAPTER'] == 'mysql2'
{
adapter: 'mysql2',
username: ENV['MYSQL_USER'],
host: ENV['MYSQL_HOST'],
port: ENV['MYSQL_PORT'],
password: ENV['MYSQL_PASSWORD'],
database: ENV['MYSQL_DATABASE']
username: ENV.fetch('MYSQL_USER', nil),
host: ENV.fetch('MYSQL_HOST', nil),
port: ENV.fetch('MYSQL_PORT', nil),
password: ENV.fetch('MYSQL_PASSWORD', nil),
database: ENV.fetch('MYSQL_DATABASE', nil)
}
else
{
Expand Down

0 comments on commit cca3a17

Please sign in to comment.