diff options
Diffstat (limited to 'ruby/spec/lib/gitaly_server/sentry_interceptor_spec.rb')
-rw-r--r-- | ruby/spec/lib/gitaly_server/sentry_interceptor_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ruby/spec/lib/gitaly_server/sentry_interceptor_spec.rb b/ruby/spec/lib/gitaly_server/sentry_interceptor_spec.rb index 5e48da132..9b4be30b1 100644 --- a/ruby/spec/lib/gitaly_server/sentry_interceptor_spec.rb +++ b/ruby/spec/lib/gitaly_server/sentry_interceptor_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' require_relative '../../../lib/gitaly_server/sentry_interceptor.rb' describe GitalyServer::SentryInterceptor do describe 'handling exceptions' do - let(:meth) { GitalyServer::RefService.instance_method(:create_branch) } + let(:meth) { GitalyServer::OperationsService.instance_method(:user_create_branch) } let(:ex) { ArgumentError.new("unknown encoding") } let(:call) { nil } @@ -45,7 +45,7 @@ describe GitalyServer::SentryInterceptor do let(:expected_tags) do call_metadata.merge( 'system' => 'gitaly-ruby', - 'gitaly-ruby.method' => 'GitalyServer::RefService#create_branch' + 'gitaly-ruby.method' => 'GitalyServer::OperationsService#user_create_branch' ) end @@ -67,7 +67,7 @@ describe GitalyServer::SentryInterceptor do it 'sends the exception to Sentry' do expect(Raven).to receive(:capture_exception).with( ex, - fingerprint: ['gitaly-ruby', 'GitalyServer::RefService#create_branch', 'unknown encoding'] + fingerprint: ['gitaly-ruby', 'GitalyServer::OperationsService#user_create_branch', 'unknown encoding'] ) begin |