Skip to content

Commit

Permalink
remove dotenv gem from tests (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 authored May 30, 2024
1 parent bccb3a2 commit c749548
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ group :development, :test do
# Call 'byebug' anywhere in the code
# to stop execution and get a debugger console
gem 'byebug', platform: :mri
gem 'dotenv'
gem 'pry'
gem 'pry-byebug'
gem 'rspec-rails'
end

group :development do
gem 'bullet'
gem 'dotenv'
gem 'listen'
gem 'rb-readline'
# Spring speeds up development by keeping your application
Expand Down
2 changes: 2 additions & 0 deletions config/docker/development/rails-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ if [ -z "$SKIP_RAILS_MIGRATIONS" ]; then
echo "✅ Migrations done"
fi

bundle exec rails db:create RAILS_ENV=test

if [ -z "$skip_seeds" ]; then
if [ ! -f /seed/done ]; then
echo "⚙️ seeding db"
Expand Down
2 changes: 1 addition & 1 deletion lib/auth_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_var_from_environment(key, required: true, default: nil)
end

def local?
to_boolean(ENV.fetch('LOCAL', false))
to_boolean(ENV.fetch('LOCAL', false)) || Rails.env.test?
end

def settings_file
Expand Down

0 comments on commit c749548

Please sign in to comment.