diff options
Diffstat (limited to 'Library/Homebrew/test')
| l--------- | Library/Homebrew/test/resources/source-with-broken-symlink/broken-link | 1 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_bottle.rb | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/test/resources/source-with-broken-symlink/broken-link b/Library/Homebrew/test/resources/source-with-broken-symlink/broken-link new file mode 120000 index 000000000..cfa0a4651 --- /dev/null +++ b/Library/Homebrew/test/resources/source-with-broken-symlink/broken-link @@ -0,0 +1 @@ +does-not-exist
\ No newline at end of file diff --git a/Library/Homebrew/test/test_bottle.rb b/Library/Homebrew/test/test_bottle.rb new file mode 100644 index 000000000..f4398cc1d --- /dev/null +++ b/Library/Homebrew/test/test_bottle.rb @@ -0,0 +1,8 @@ +require "testing_env" +require "cmd/bottle" + +class BottleTests < Homebrew::TestCase + def test_most_recent_mtime_with_broken_symlink() + refute_nil Homebrew.most_recent_mtime(Pathname(File.join(TEST_DIRECTORY, 'resources/source-with-broken-symlink'))) + end +end |
