Skip to content

Commit

Permalink
Bug fixing: issue with dotenv-rails gem causing tests to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-romero committed May 13, 2024
1 parent e874dfd commit 7f2bee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend-ror/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ gem "schema_to_scaffold", "~> 0.8.2", :group => :development

gem "binascii", "~> 1.0"

gem 'dotenv-rails', groups: [:development, :test]
# Dotenv can not be used in test environment at the moment, because it causes the tests to fail
# https://github.com/bkeepers/dotenv/issues/500
# gem 'dotenv-rails', groups: [:development, :test]
gem 'dotenv-rails', groups: [:development]
2 changes: 1 addition & 1 deletion backend-ror/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default: &default
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
database: <%= ENV.fetch("DATABASE_URL") %>
database: <%= ENV.fetch("DATABASE_URL") {''} %>

development:
<<: *default
Expand Down

0 comments on commit 7f2bee2

Please sign in to comment.