diff --git a/spec/datadog/appsec/contrib/rack/integration_test_spec.rb b/spec/datadog/appsec/contrib/rack/integration_test_spec.rb index 59f3c9aa21..0ad25f40e1 100644 --- a/spec/datadog/appsec/contrib/rack/integration_test_spec.rb +++ b/spec/datadog/appsec/contrib/rack/integration_test_spec.rb @@ -139,7 +139,10 @@ end end - after { Datadog.registry[:rack].reset_configuration! } + after do + Datadog::AppSec.settings.send(:reset!) + Datadog.registry[:rack].reset_configuration! + end context 'for an application' do # TODO: also test without Tracing: it should run without trace transport diff --git a/spec/datadog/appsec/contrib/rails/integration_test_spec.rb b/spec/datadog/appsec/contrib/rails/integration_test_spec.rb index c4bd43c8ee..247ff9d04f 100644 --- a/spec/datadog/appsec/contrib/rails/integration_test_spec.rb +++ b/spec/datadog/appsec/contrib/rails/integration_test_spec.rb @@ -97,6 +97,11 @@ end end + after do + Datadog::AppSec.settings.send(:reset!) + Datadog.registry[:rails].reset_configuration! + end + context 'for an application' do include_context 'Rails test application' diff --git a/spec/datadog/appsec/contrib/sinatra/integration_test_spec.rb b/spec/datadog/appsec/contrib/sinatra/integration_test_spec.rb index 0bd6106f32..677a06c196 100644 --- a/spec/datadog/appsec/contrib/sinatra/integration_test_spec.rb +++ b/spec/datadog/appsec/contrib/sinatra/integration_test_spec.rb @@ -110,6 +110,7 @@ end after do + Datadog::AppSec.settings.send(:reset!) Datadog.registry[:rack].reset_configuration! Datadog.registry[:sinatra].reset_configuration! end