Commit dda8982f authored by Bob Van Landuyt's avatar Bob Van Landuyt

Require `gl_resository` in internal API spec

Explicitly requiring `Gitlab::GlRepository` in the spec that requires
it makes sure it is correctly prepended with
`EE::Gitlab::Repository`.

Otherwise, if a spec before it autoloaded one of the constants from
within `Gitlab::GlRepository` the module would not be prepended.
parent b954c248
# frozen_string_literal: true
require 'spec_helper'
# Explicitly require `GlRepository` since if it was autoloaded by a previous spec
# but not really loaded, the `Gitlab::GlRepository` module is not prepended with it's EE counterpart
require_dependency 'lib/gitlab/gl_repository'
describe API::Internal do
describe "POST /internal/allowed" do
context "for design repositories" do
......
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