Turn off NewRelic agent for autotest

This commit is contained in:
Priit Tark 2015-05-27 11:38:44 +03:00
parent 9a4b268322
commit f323dc9fad

View file

@ -1 +1,3 @@
NewRelic::Agent.config[:app_name] = "#{ENV['new_relic_app_name']} - #{Rails.env}" if ENV['new_relic_app_name'].present?
unless Rails.env.test?
NewRelic::Agent.config[:app_name] = "#{ENV['new_relic_app_name']} - #{Rails.env}" if ENV['new_relic_app_name'].present?
end