test/cask/utils_spec: fix test failure when HOMEBREW_TEMP is a symlink

This commit is contained in:
Bo Anderson 2024-09-27 03:02:26 +01:00
parent b72544eb04
commit fe0505d492
No known key found for this signature in database

View File

@ -46,7 +46,7 @@ RSpec.describe Cask::Utils do
expect(path).to be_a_file
expect(link).to be_a_symlink
expect(link.realpath).to eq path
expect(link.readlink).to eq path
described_class.gain_permissions_remove(link, command:)
@ -64,7 +64,7 @@ RSpec.describe Cask::Utils do
expect(path).to be_a_directory
expect(link).to be_a_symlink
expect(link.realpath).to eq path
expect(link.readlink).to eq path
described_class.gain_permissions_remove(link, command:)