mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-06 10:19:48 +00:00
14 lines
254 B
Ruby
14 lines
254 B
Ruby
# frozen_string_literal: true
|
|
|
|
def spec_path
|
|
Pathname.new(__dir__).join('..').expand_path
|
|
end
|
|
|
|
def temp_path
|
|
spec_path.join('..', 'tmp').expand_path
|
|
end
|
|
|
|
def stub_env(var, return_value)
|
|
stub_const('ENV', ENV.to_hash.merge(var => return_value))
|
|
end
|