提交 4a7f8cb5 编写于 作者: M Mislav Marohnić

Isolate tests from user's configuration via env

Fixes #1320
上级 95be4466
......@@ -12,6 +12,7 @@ import (
func setupInitContext() {
os.Setenv("HUB_PROTOCOL", "git")
os.Setenv("HUB_CONFIG", "")
github.CreateTestConfigs("jingweno", "123")
}
......
......@@ -50,6 +50,9 @@ Before do
set_env 'LC_ALL', 'en_US.UTF-8'
# ignore current user's token
set_env 'GITHUB_TOKEN', nil
set_env 'GITHUB_USER', nil
set_env 'GITHUB_PASSWORD', nil
set_env 'GITHUB_HOST', nil
author_name = "Hub"
author_email = "hub@test.local"
......@@ -60,6 +63,7 @@ Before do
set_env 'HUB_VERSION', 'dev'
set_env 'HUB_REPORT_CRASH', 'never'
set_env 'HUB_PROTOCOL', nil
FileUtils.mkdir_p ENV['HOME']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册