Add default #uses_from_macos behaviour spec

This commit is contained in:
Gabriel 2019-05-24 21:38:34 -03:00
parent aafe87524d
commit 38653f0cbc

View File

@ -138,6 +138,18 @@ describe SoftwareSpec do
expect(subject.options.first.description).to eq("blah") expect(subject.options.first.description).to eq("blah")
end end
describe "#uses_from_macos" do
it "allows specifying dependencies" do
subject.uses_from_macos("foo")
expect(subject.deps.first.name).to eq("foo")
end
it "ignores OS version specifications" do
subject.uses_from_macos("foo", after: :mojave)
expect(subject.deps.first.name).to eq("foo")
end
end
describe "#patch" do describe "#patch" do
it "adds a patch" do it "adds a patch" do
subject.patch(:p1, :DATA) subject.patch(:p1, :DATA)