From fc0b4e29fc9c034471d0eb13eecc3b0bdf093306 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Tue, 26 Nov 2024 16:36:26 -0800 Subject: [PATCH] list_spec: swap `/dev/null` for `File::NULL` Signed-off-by: Patrick Linnane --- spec/homebrew/commands/list_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/homebrew/commands/list_spec.rb b/spec/homebrew/commands/list_spec.rb index 4dc550bf0..3d250903e 100644 --- a/spec/homebrew/commands/list_spec.rb +++ b/spec/homebrew/commands/list_spec.rb @@ -21,7 +21,7 @@ it "succeeds with list" do out = "Name Status User File\nservice started user /dev/null\n" - formula = OpenStruct.new(name: "service", user: "user", status: :started, file: +"/dev/null", loaded: true) + formula = OpenStruct.new(name: "service", user: "user", status: :started, file: +File::NULL, loaded: true) expect(Service::Formulae).to receive(:services_list).and_return([formula]) expect do described_class.run