Skip to content

Commit

Permalink
formula_wrapper_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 b971350 commit cbd8156
Showing 1 changed file with 1 addition and 1 deletion.
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 cbd8156

Please sign in to comment.