Skip to content

Commit

Permalink
list_spec: swap /dev/null for File::NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <[email protected]>
  • Loading branch information
p-linnane committed Nov 27, 2024
1 parent cbd8156 commit fc0b4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/homebrew/commands/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

it "succeeds with list" do
out = "<BOLD>Name Status User File<RESET>\nservice <GREEN>started<RESET> 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
Expand Down

0 comments on commit fc0b4e2

Please sign in to comment.