Merge pull request #18435 from Homebrew/temp-symlink-test-fix

test/cask/utils_spec: fix test failure when HOMEBREW_TEMP is a symlink
This commit is contained in:
Mike McQuaid 2024-09-27 08:42:11 +01:00 committed by GitHub
commit a6954f26a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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:)