Commit 484db675 authored by Albert Salim's avatar Albert Salim

Merge branch '344279-perflogger-openstruct-fix' into 'master'

Fix OpenStruct use in perf_logger_spec

See merge request gitlab-org/gitlab!74420
parents 8d278280 7077c3d2
...@@ -2601,7 +2601,6 @@ Style/OpenStructUse: ...@@ -2601,7 +2601,6 @@ Style/OpenStructUse:
- 'spec/lib/gitlab/gitaly_client/blobs_stitcher_spec.rb' - 'spec/lib/gitlab/gitaly_client/blobs_stitcher_spec.rb'
- 'spec/lib/gitlab/gitaly_client/diff_stitcher_spec.rb' - 'spec/lib/gitlab/gitaly_client/diff_stitcher_spec.rb'
- 'spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb' - 'spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb'
- 'spec/lib/gitlab/grape_logging/loggers/perf_logger_spec.rb'
- 'spec/lib/gitlab/graphql/pagination/keyset/connection_generic_keyset_spec.rb' - 'spec/lib/gitlab/graphql/pagination/keyset/connection_generic_keyset_spec.rb'
- 'spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb' - 'spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb'
- 'spec/lib/gitlab/legacy_github_import/project_creator_spec.rb' - 'spec/lib/gitlab/legacy_github_import/project_creator_spec.rb'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Gitlab::GrapeLogging::Loggers::PerfLogger do RSpec.describe Gitlab::GrapeLogging::Loggers::PerfLogger do
let(:mock_request) { OpenStruct.new(env: {}) } let(:mock_request) { double('env', env: {}) }
describe ".parameters" do describe ".parameters" do
subject { described_class.new.parameters(mock_request, nil) } subject { described_class.new.parameters(mock_request, nil) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment