diff options
Diffstat (limited to 'spec/requests/api/helpers_spec.rb')
-rw-r--r-- | spec/requests/api/helpers_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/helpers_spec.rb b/spec/requests/api/helpers_spec.rb index 0c53c04ba40..1bec860bf0e 100644 --- a/spec/requests/api/helpers_spec.rb +++ b/spec/requests/api/helpers_spec.rb @@ -226,11 +226,11 @@ describe API::Helpers do describe '.handle_api_exception' do before do allow_any_instance_of(self.class).to receive(:rack_response) - allow(Gitlab::Sentry).to receive(:enabled?).and_return(true) stub_sentry_settings - configure_sentry + expect(Gitlab::Sentry).to receive(:sentry_dsn).and_return(Gitlab.config.sentry.dsn) + Gitlab::Sentry.configure Raven.client.configuration.encoding = 'json' end |