Files
gitlab-foss/gems/gitlab-backup-cli/spec/support/helpers.rb
2024-03-06 15:09:47 +00:00

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