godep: fix test for Go 1.7

This commit is contained in:
Dominyk Tiller 2016-08-16 02:59:35 +01:00
parent 2cff23231c
commit fad6ec2123

View file

@ -23,16 +23,20 @@ class Godep < Formula
end
test do
ENV["GO15VENDOREXPERIMENT"] = "0"
ENV["GOPATH"] = testpath.realpath
(testpath/"Godeps.json").write <<-EOS.undent
(testpath/"Godeps/Godeps.json").write <<-EOS.undent
{
"ImportPath": "github.com/tools/godep",
"GoVersion": "go1.6",
"Deps": []
"GoVersion": "go1.7",
"Deps": [
{
"ImportPath": "go.googlesource.com/tools",
"Rev": "3fe2afc9e626f32e91aff6eddb78b14743446865"
}
]
}
EOS
(testpath/"src/foo/bar/Godeps").install "Godeps.json"
cd("src/foo/bar") { system bin/"godep", "path" }
system bin/"godep", "restore"
assert File.exist?("src/go.googlesource.com/tools/README")
end
end