diff --git a/lib/raven/cli.rb b/lib/raven/cli.rb index ab9bfd42e..86b95bf97 100644 --- a/lib/raven/cli.rb +++ b/lib/raven/cli.rb @@ -18,7 +18,7 @@ def self.test(dsn = nil, silent = false, config = nil) # rubocop:disable all # wipe out env settings to ensure we send the event unless config.capture_allowed? - env_name = config.environments.pop || 'production' + env_name = config.environments.first || 'production' config.current_environment = env_name end