diff --git a/config/initializers/bugsnag.rb b/config/initializers/bugsnag.rb index c67725fcf6..89dae2853d 100644 --- a/config/initializers/bugsnag.rb +++ b/config/initializers/bugsnag.rb @@ -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 diff --git a/spec/services/alert_spec.rb b/spec/services/alert_spec.rb index bc31d7686c..16a73721e5 100644 --- a/spec/services/alert_spec.rb +++ b/spec/services/alert_spec.rb @@ -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