As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 69d39094 authored by Robert Speicher's avatar Robert Speicher
Browse files

Override `ROOT_PATH` in specs in a less insane way

parent b9d086e9
No related branches found
No related tags found
No related merge requests found
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), ".."))
ROOT_PATH = File.expand_path('..', __dir__)
require_relative 'gitlab_config'
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), ".."))
require 'simplecov'
SimpleCov.start
Loading
Loading
@@ -13,6 +11,12 @@ VCR.configure do |c|
c.configure_rspec_metadata!
end
RSpec.configure do |config|
config.before(:each) do
stub_const('ROOT_PATH', File.expand_path('..', __dir__))
end
end
# like WEBrick::HTTPServer, but listens on UNIX socket
class HTTPUNIXServer < WEBrick::HTTPServer
def listen(address, port)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment