Add default #uses_from_macos behaviour spec
This commit is contained in:
parent
aafe87524d
commit
38653f0cbc
@ -138,6 +138,18 @@ describe SoftwareSpec do
|
||||
expect(subject.options.first.description).to eq("blah")
|
||||
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
|
||||
it "adds a patch" do
|
||||
subject.patch(:p1, :DATA)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user