Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/raven/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be last instead of first to maintain the same behavior?

config.current_environment = env_name
end

Expand Down