Skip to content

Commit

Permalink
reduce line length
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhoy committed Jun 16, 2019
1 parent 4601fb4 commit 5921eff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dotenv/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
#
# See https://github.com/bkeepers/dotenv/issues/219
if defined?(Rake.application)
is_running_specs = Rake.application.top_level_tasks.grep(/^(parallel:spec|spec(:|$))/).any?
Rails.env = ENV["RAILS_ENV"] ||= "test" if is_running_specs
if Rake.application.top_level_tasks.grep(/^(parallel:spec|spec(:|$))/).any?
Rails.env = ENV["RAILS_ENV"] ||= "test"
end
end

Dotenv.instrumenter = ActiveSupport::Notifications
Expand Down

0 comments on commit 5921eff

Please sign in to comment.