diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-22 06:06:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-22 06:06:14 +0300 |
commit | f519cec2ad00c08b03614addd39a0d1a81c5d236 (patch) | |
tree | 59293b4a603c2ac8e20ac94f4a35490f28eb54d0 /spec/lib/gitlab/grape_logging | |
parent | 157f9a451a428f66666ba85d8b880df78aff6cc4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/grape_logging')
-rw-r--r-- | spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb b/spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb index 8d7826c0a56..e21af023bb8 100644 --- a/spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb +++ b/spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb @@ -24,10 +24,8 @@ describe Gitlab::GrapeLogging::Loggers::ExceptionLogger do let(:expected) do { - exception: { - class: 'RuntimeError', - message: 'This is a test' - } + 'exception.class' => 'RuntimeError', + 'exception.message' => 'This is a test' } end @@ -39,7 +37,7 @@ describe Gitlab::GrapeLogging::Loggers::ExceptionLogger do before do current_backtrace = caller allow(exception).to receive(:backtrace).and_return(current_backtrace) - expected[:exception][:backtrace] = Gitlab::Profiler.clean_backtrace(current_backtrace) + expected['exception.backtrace'] = Gitlab::Profiler.clean_backtrace(current_backtrace) end it 'includes the backtrace' do |