Update Library/Homebrew/test/cli/named_args_spec.rb

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Connor Mann 2021-05-20 12:09:45 -04:00 committed by GitHub
parent cad665406e
commit 0938500721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ describe Homebrew::CLI::NamedArgs do
end end
it "resolves kegs with multiple versions with #resolve_keg" do it "resolves kegs with multiple versions with #resolve_keg" do
expect(described_class.new("foo").to_kegs.map(&->(k) { k.version.version })).to eq ["1.0", "2.0"] expect(described_class.new("foo").to_kegs.map { |k| k.version.version }).to eq ["1.0", "2.0"]
end end
it "when there are no matching kegs returns an empty array" do it "when there are no matching kegs returns an empty array" do