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:
parent
1f8ebf5d20
commit
2a50ef045f
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user