diff --git a/Library/Homebrew/test/sbom_spec.rb b/Library/Homebrew/test/sbom_spec.rb index c270b2a0fda50..e162f3a0d5d0b 100644 --- a/Library/Homebrew/test/sbom_spec.rb +++ b/Library/Homebrew/test/sbom_spec.rb @@ -59,7 +59,7 @@ "declared_directly" => true, } end - expect(Tab).to receive(:runtime_deps_hash).and_return(runtime_deps_hash) + expect(Tab).to receive(:formula_runtime_deps_hash).and_return(runtime_deps_hash) tab = Tab.create(f, DevelopmentTools.default_compiler, :libcxx) expect(Formulary).to receive(:factory).with("beanstalkd").and_return(beanstalkd)