diff options
Diffstat (limited to 'spec/support/shared_contexts/lib/gitlab')
-rw-r--r-- | spec/support/shared_contexts/lib/gitlab/middleware/with_a_mocked_gitlab_instance_shared_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_contexts/lib/gitlab/middleware/with_a_mocked_gitlab_instance_shared_context.rb b/spec/support/shared_contexts/lib/gitlab/middleware/with_a_mocked_gitlab_instance_shared_context.rb index 3830b89f1ff..5d65c168d8d 100644 --- a/spec/support/shared_contexts/lib/gitlab/middleware/with_a_mocked_gitlab_instance_shared_context.rb +++ b/spec/support/shared_contexts/lib/gitlab/middleware/with_a_mocked_gitlab_instance_shared_context.rb @@ -25,7 +25,7 @@ RSpec.shared_context 'with a mocked GitLab instance' do let(:request) { Rack::MockRequest.new(rack_stack) } subject do - described_class.new(fake_app).tap do |app| + Gitlab::Middleware::ReadOnly.new(fake_app).tap do |app| app.extend(observe_env) end end |