未验证 提交 722a8eda 编辑于 作者: Rylan Polster's avatar Rylan Polster
浏览文件

Fix tests

上级 69e29a35
......@@ -996,7 +996,7 @@ describe Formula do
expect(f).to pour_bottle
end
it "returns false when set with a symbol" do
it "returns false with `reason: :clt_required` on macOS", :needs_macos do
# Pretend CLT is not installed
allow(MacOS::CLT).to receive(:installed?).and_return(false)
......@@ -1009,7 +1009,7 @@ describe Formula do
expect(f).not_to pour_bottle
end
it "returns true when set with a symbol" do
it "returns true with `reason: :clt_required` on macOS", :needs_macos do
# Pretend CLT is installed
allow(MacOS::CLT).to receive(:installed?).and_return(true)
......@@ -1022,6 +1022,16 @@ describe Formula do
expect(f).to pour_bottle
end
it "returns true with `reason: :clt_required` on Linux", :needs_linux do
f = formula "foo" do
url "foo-1.0"
pour_bottle? reason: :clt_required
end
expect(f).to pour_bottle
end
it "throws an error if passed both a symbol and a block" do
expect do
formula "foo" do
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册