mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Update Bugsnag config naming
This commit is contained in:
@@ -12,5 +12,5 @@ Bugsnag.configure do |config|
|
||||
# If you want to notify Bugsnag in dev or test then set the env var:
|
||||
# spring stop
|
||||
# BUGSNAG=true ./bin/rails console
|
||||
config.notify_release_stages = %w(production staging) unless ENV["BUGSNAG"]
|
||||
config.enabled_release_stages = %w(production staging) unless ENV["BUGSNAG"]
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ RSpec.describe Alert do
|
||||
Bugsnag.configure do |config|
|
||||
original_config = config.dup
|
||||
config.api_key ||= "00000000000000000000000000000000"
|
||||
config.notify_release_stages = ["test"]
|
||||
config.enabled_release_stages = ["test"]
|
||||
config.delivery_method = :synchronous
|
||||
end
|
||||
|
||||
@@ -16,7 +16,7 @@ RSpec.describe Alert do
|
||||
|
||||
Bugsnag.configure do |config|
|
||||
config.api_key = original_config.api_key
|
||||
config.notify_release_stages = original_config.notify_release_stages
|
||||
config.enabled_release_stages = original_config.notify_release_stages
|
||||
config.delivery_method = original_config.delivery_method
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user