aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-08 07:14:28 +0100
committerMarkus Reiter2017-02-08 07:14:28 +0100
commit6cd36428505b1b3548b1e15fe7e0a850b2e2aeaa (patch)
tree219069b8c2f5fde8a064004836abbc23e959afbe /Library/Homebrew/cask/test
parent11abfc39ab593a525663c9dc7f24a9a93fb895e4 (diff)
downloadbrew-6cd36428505b1b3548b1e15fe7e0a850b2e2aeaa.tar.bz2
Create custom matchers for “valid symlink”.
Diffstat (limited to 'Library/Homebrew/cask/test')
-rw-r--r--Library/Homebrew/cask/test/cask/artifact/suite_test.rb2
-rw-r--r--Library/Homebrew/cask/test/test_helper.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/test/cask/artifact/suite_test.rb b/Library/Homebrew/cask/test/cask/artifact/suite_test.rb
index 0584dcbeb..6259baa4b 100644
--- a/Library/Homebrew/cask/test/cask/artifact/suite_test.rb
+++ b/Library/Homebrew/cask/test/cask/artifact/suite_test.rb
@@ -20,7 +20,7 @@ describe Hbc::Artifact::Suite do
end
target_path.must_be :directory?
- TestHelper.valid_alias?(target_path).must_equal false
+ TestHelper.valid_symlink?(target_path).must_equal false
source_path.wont_be :exist?
end
diff --git a/Library/Homebrew/cask/test/test_helper.rb b/Library/Homebrew/cask/test/test_helper.rb
index 71ce5752e..f600a1c5c 100644
--- a/Library/Homebrew/cask/test/test_helper.rb
+++ b/Library/Homebrew/cask/test/test_helper.rb
@@ -58,7 +58,7 @@ class TestHelper
"file://" + local_binary_path(name)
end
- def self.valid_alias?(candidate)
+ def self.valid_symlink?(candidate)
return false unless candidate.symlink?
candidate.readlink.exist?
end