Fix tests

This commit is contained in:
Tom Forbes 2022-12-10 15:02:18 +00:00
parent 2c378249aa
commit 173e6bf1d3

View File

@ -25,7 +25,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
it "accepts a string" do it "accepts a string" do
expect(formula).to receive(:system) expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps", .with(dir/"bin/pip", "install", "-v", "--no-deps",
"--no-binary", ":all:", "--ignore-installed", "foo") "--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "foo")
.and_return(true) .and_return(true)
virtualenv.pip_install "foo" virtualenv.pip_install "foo"
end end
@ -33,7 +33,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
it "accepts a multi-line strings" do it "accepts a multi-line strings" do
expect(formula).to receive(:system) expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps", .with(dir/"bin/pip", "install", "-v", "--no-deps",
"--no-binary", ":all:", "--ignore-installed", "foo", "bar") "--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "foo", "bar")
.and_return(true) .and_return(true)
virtualenv.pip_install <<~EOS virtualenv.pip_install <<~EOS
@ -45,12 +45,12 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
it "accepts an array" do it "accepts an array" do
expect(formula).to receive(:system) expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps", .with(dir/"bin/pip", "install", "-v", "--no-deps",
"--no-binary", ":all:", "--ignore-installed", "foo") "--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "foo")
.and_return(true) .and_return(true)
expect(formula).to receive(:system) expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps", .with(dir/"bin/pip", "install", "-v", "--no-deps",
"--no-binary", ":all:", "--ignore-installed", "bar") "--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "bar")
.and_return(true) .and_return(true)
virtualenv.pip_install ["foo", "bar"] virtualenv.pip_install ["foo", "bar"]
@ -62,7 +62,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
expect(res).to receive(:stage).and_yield expect(res).to receive(:stage).and_yield
expect(formula).to receive(:system) expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps", .with(dir/"bin/pip", "install", "-v", "--no-deps",
"--no-binary", ":all:", "--ignore-installed", Pathname.pwd) "--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", Pathname.pwd)
.and_return(true) .and_return(true)
virtualenv.pip_install res virtualenv.pip_install res