From 2938b2798df52f26b9c6dcb12536b75ff08781bd Mon Sep 17 00:00:00 2001 From: Connor Mann Date: Thu, 20 May 2021 12:06:23 -0400 Subject: [PATCH] Update `to_default_kegs` tests --- Library/Homebrew/test/cli/named_args_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/test/cli/named_args_spec.rb b/Library/Homebrew/test/cli/named_args_spec.rb index fa7e3009a7..859dfc6ea3 100644 --- a/Library/Homebrew/test/cli/named_args_spec.rb +++ b/Library/Homebrew/test/cli/named_args_spec.rb @@ -200,13 +200,16 @@ describe Homebrew::CLI::NamedArgs do before do (HOMEBREW_CELLAR/"foo/1.0").mkpath (HOMEBREW_CELLAR/"bar/1.0").mkpath + linked_path = (HOMEBREW_CELLAR/"foo/2.0") + linked_path.mkpath + Keg.new(linked_path).link end it "resolves kegs with #resolve_default_keg" do expect(described_class.new("foo", "bar").to_default_kegs.map(&:name)).to eq ["foo", "bar"] end - it "when there are no matching kegs returns an array of Kegs" do + it "when there are no matching kegs returns an empty array" do expect(described_class.new.to_default_kegs).to be_empty end end