diff --git a/Library/Homebrew/test/formulary_spec.rb b/Library/Homebrew/test/formulary_spec.rb index ca6455fe73..ad81b0aa83 100644 --- a/Library/Homebrew/test/formulary_spec.rb +++ b/Library/Homebrew/test/formulary_spec.rb @@ -77,7 +77,7 @@ describe Formulary do it "raises an error if ref is nil" do expect do described_class.factory(nil) - end.to raise_error(ArgumentError) + end.to raise_error(TypeError) end context "with sharded Formula directory" do