From 0c4c4a87a29cf7661ea28c385a3427e39bb9f960 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 18 Mar 2024 09:24:40 -0700 Subject: [PATCH] Fix flaky Tapioca::Compilers::Args test --- .../sorbet/tapioca/compilers/args_spec.rb | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/Library/Homebrew/test/sorbet/tapioca/compilers/args_spec.rb b/Library/Homebrew/test/sorbet/tapioca/compilers/args_spec.rb index 7cc5318923fca..cd21686a80f72 100644 --- a/Library/Homebrew/test/sorbet/tapioca/compilers/args_spec.rb +++ b/Library/Homebrew/test/sorbet/tapioca/compilers/args_spec.rb @@ -17,28 +17,10 @@ describe "#args_table" do it "returns a mapping of list args to default values" do - expect(compiler.args_table(list_parser)).to eq({ - "1?": false, - cask?: false, - casks?: false, - d?: false, - debug?: false, - formula?: false, - formulae?: false, - full_name?: false, - h?: false, - help?: false, - l?: false, - multiple?: false, - pinned?: false, - q?: false, - quiet?: false, - r?: false, - t?: false, - v?: false, - verbose?: false, - versions?: false, - }) + expect(compiler.args_table(list_parser).keys).to contain_exactly( + :"1?", :cask?, :casks?, :d?, :debug?, :formula?, :formulae?, :full_name?, :h?, :help?, :l?, :multiple?, + :pinned?, :q?, :quiet?, :r?, :t?, :v?, :verbose?, :versions? + ) end it "rreturns a mapping of update-python-resources args to default values" do