Update tests for to_keg
This commit is contained in:
parent
d46881c5e2
commit
d754c0f450
@ -176,18 +176,18 @@ describe Homebrew::CLI::NamedArgs do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#to_kegs" do
|
describe "#to_keg" do
|
||||||
before do
|
before do
|
||||||
(HOMEBREW_CELLAR/"foo/1.0").mkpath
|
(HOMEBREW_CELLAR/"foo/1.0").mkpath
|
||||||
(HOMEBREW_CELLAR/"bar/1.0").mkpath
|
(HOMEBREW_CELLAR/"bar/1.0").mkpath
|
||||||
end
|
end
|
||||||
|
|
||||||
it "resolves kegs with #resolve_kegs" do
|
it "resolves kegs with #resolve_keg" do
|
||||||
expect(described_class.new("foo", "bar").to_kegs.map(&:name)).to eq ["foo", "bar"]
|
expect(described_class.new("foo", "bar").to_keg.map(&:name)).to eq ["foo", "bar"]
|
||||||
end
|
end
|
||||||
|
|
||||||
it "when there are no matching kegs returns an array of Kegs" do
|
it "when there are no matching kegs returns an array of Kegs" do
|
||||||
expect(described_class.new.to_kegs).to be_empty
|
expect(described_class.new.to_keg).to be_empty
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user