diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-08-10 18:31:42 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-08-10 19:29:42 -0400 |
commit | c8b802471bcb6ea9ea7af3c7a139598a1f945230 (patch) | |
tree | fb3fe5c094d8a831ede19d4ff2f1471914744907 /spec/lib/gitlab/request_context_spec.rb | |
parent | 4ef10795ce5e24dc0f905daeb7236fe707a8c195 (diff) | |
download | gitlab-ce-c8b802471bcb6ea9ea7af3c7a139598a1f945230.tar.gz |
Enable the RSpec/HookArgument cop and auto-correct offenses
Diffstat (limited to 'spec/lib/gitlab/request_context_spec.rb')
-rw-r--r-- | spec/lib/gitlab/request_context_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/request_context_spec.rb b/spec/lib/gitlab/request_context_spec.rb index e272bdb9284..8a28ad0e597 100644 --- a/spec/lib/gitlab/request_context_spec.rb +++ b/spec/lib/gitlab/request_context_spec.rb @@ -7,7 +7,7 @@ describe Gitlab::RequestContext do let(:env) { Hash.new } context 'when RequestStore::Middleware is used' do - around(:each) do |example| + around do |example| RequestStore::Middleware.new(-> (env) { example.run }).call({}) end |