Skip to content

Commit

Permalink
Refatorando a forma de obter o ENVIRONMENT no spec_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
AndressaKarla committed Dec 9, 2023
1 parent 51980d7 commit 4ae597f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@
config.color = true
config.formatter = :documentation

@environment = ENV['ENVIRONMENT']

if @environment.nil?
@environment = 'dev'
end

if @environment.eql?('local')
@environment = 'local'
end
@environment = ENV['ENVIRONMENT'] || 'dev'

CONFIG = YAML.load_file(File.dirname(__FILE__) + "/support/environments/#{@environment}.yml")
puts "Ambiente >> #{@environment}"
Expand Down

0 comments on commit 4ae597f

Please sign in to comment.