зеркало из https://github.com/github/licensed.git
force modules on for module tests
This commit is contained in:
Родитель
ec48930620
Коммит
ee65f1c5a3
|
@ -243,6 +243,14 @@ if Licensed::Shell.tool_available?("go")
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "module dependencies" do
|
describe "module dependencies" do
|
||||||
|
before do
|
||||||
|
ENV["GO111MODULE"] = "on"
|
||||||
|
end
|
||||||
|
|
||||||
|
after do
|
||||||
|
ENV["GO111MODULE"] = nil
|
||||||
|
end
|
||||||
|
|
||||||
it "does not include the current package" do
|
it "does not include the current package" do
|
||||||
Dir.chdir fixtures do
|
Dir.chdir fixtures do
|
||||||
dep = source.dependencies.detect { |d| d.name.end_with?("test") }
|
dep = source.dependencies.detect { |d| d.name.end_with?("test") }
|
||||||
|
|
Загрузка…
Ссылка в новой задаче