on_os blocks: remove url tests

This is not allowed by the style audit, and we do not want
to allow different source url's depending on the os.
This commit is contained in:
Michka Popoff 2020-06-08 17:04:54 +02:00
parent 1f8ebf5d20
commit 2a50ef045f
2 changed files with 0 additions and 40 deletions

View File

@ -33,26 +33,6 @@ describe Formula do
end end
end end
describe "#on_linux" do
it "defines an url on Linux only" do
f = formula do
homepage "https://brew.sh"
on_macos do
url "https://brew.sh/test-macos-0.1.tbz"
sha256 TEST_SHA256
end
on_linux do
url "https://brew.sh/test-linux-0.1.tbz"
sha256 TEST_SHA256
end
end
expect(f.stable.url).to eq("https://brew.sh/test-linux-0.1.tbz")
end
end
describe "#on_linux" do describe "#on_linux" do
it "adds a dependency on Linux only" do it "adds a dependency on Linux only" do
f = formula do f = formula do

View File

@ -40,26 +40,6 @@ describe Formula do
end end
end end
describe "#on_macos" do
it "defines an url on macos only" do
f = formula do
homepage "https://brew.sh"
on_macos do
url "https://brew.sh/test-macos-0.1.tbz"
sha256 TEST_SHA256
end
on_linux do
url "https://brew.sh/test-linux-0.1.tbz"
sha256 TEST_SHA256
end
end
expect(f.stable.url).to eq("https://brew.sh/test-macos-0.1.tbz")
end
end
describe "#on_macos" do describe "#on_macos" do
it "adds a dependency on macos only" do it "adds a dependency on macos only" do
f = formula do f = formula do