Skip to content

Commit

Permalink
Merge pull request #817 from Homebrew/dev-null-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Nov 27, 2024
2 parents b971350 + fc0b4e2 commit e6faeb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion spec/homebrew/formula_wrapper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

it "false if opt_prefix missing" do
allow(service).to receive_messages(installed?: true,
service_file: Pathname.new("/dev/null"),
service_file: Pathname.new(File::NULL),
formula: OpenStruct.new(plist: nil,
opt_prefix: Pathname.new("/dfslkfhjdsolshlk")))
expect(service.plist?).to be(false)
Expand Down

0 comments on commit e6faeb8

Please sign in to comment.